javascript - Iframe content loading before css with Firefox -


i've problem iframe, load content dynamically , compile html javascript. works fine browsers, firefox have small lag between html loading , css loading. display iframe content @ first (raw html), , few seconds later css displaying.

is firefox issue, or specific operation of browser ? , want know if there solutions resolve ?

i've found during researches, , think same problem : http://www.phpied.com/when-is-a-stylesheet-really-loaded/ , : https://support.mozilla.org/fr/questions/970521

could solution if use fade after document ready. if have browser detection can add class body .ff firefox.

#main-content { display: none; }   $(document).ready(function() {     $('#main-content').fadein(); }); 

or use browser detection jquery http://api.jquery.com/jquery.browser/

 if ( $.browser.webkit ) {     alert( "this webkit!" );   } 

Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -