Preload PDFs with jQuery and PHP to work with Chrome -


i have page pdf embedded , i'm using preloader. in firefox works perfectly, in chrome or safari doesn't. preload text , image stays second, after grey screen appears , stays till file loaded.

here code:

<body>     <div id="loading">         <div class="pretxt">please patient, won't regret!</div>         <div class="preimg">             <img src="path/to/image/loader.gif" width="126" height="22" alt="loading..." />         </div>     </div>     <embed src="/path/to/file/pdf.pdf" width="100%" height="100%" alt="pdf" id="pdf" pluginspage="http://www.adobe.com/products/acrobat/readstep2.html">     <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script>     $(window).load(function()         {         $("#loading").fadeout("slow");     });     </script>     </body> 

can please give advices? thank you!


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -