title: How to show loading(Processing) while export excel?
body: <p>When export excel option is clicked, a call to the backend code will get the file(<strong>file_name.xls</strong>) from server side.It gets downloaded through <code>document.location.href</code></p>
  
  <pre><code>jQuery("#exportExcel").click(function() {
                      $("#loading").show();
                      var exportExcelUrl='/portal/portalDownloadExcel?fileType=main';
                      document.location.href=exportExcelUrl;
                      $("#loading").hide();
  
          });
  </code></pre>
  
  <p>But above steps can't hide the processing image, because I don't get server's response.</p>
  
  <p>I have tried the <a href="https://stackoverflow.com/a/23797348/2932178">ajax format</a> to show loading , But file downloaded all the content has special characters.
      To remove these special characters, i have used the : 'encodeURIComponent,blob,special characters remover'</p>