Skip to content

Commit

Permalink
added class ui-mobile-rendering to HTML el during initial build - wil…
Browse files Browse the repository at this point in the history
…l be used to prevent fouc
  • Loading branch information
scottjehl committed Nov 7, 2010
1 parent a405eda commit 32af18d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/jquery.mobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@
//media-query-like width breakpoints, which are translated to classes on the html element
resolutionBreakpoints = [320,480,768,1024];

//add mobile, loading classes to doc
$html.addClass('ui-mobile');
//add mobile, initial load "rendering" classes to docEl
$html.addClass('ui-mobile ui-mobile-rendering');

//prepend head markup additions
$head.prepend( $.mobile.headExtras || {}, $metaViewport || {}, $base || {} );
Expand Down Expand Up @@ -605,6 +605,9 @@

//update orientation
$window.trigger( "orientationchange.htmlclass" );

//remove rendering class
$html.removeClass('ui-mobile-rendering');
});

$window
Expand Down

0 comments on commit 32af18d

Please sign in to comment.