Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Moved the call to remove the ui-mobile-rendering class from the page …

…transition done() promise to init JS. Fixes #3505 and Fixes #3516
  • Loading branch information...
commit 4feaa46865e265fbdfdd5d0884574e17e47c1275 1 parent 699e1a4
scottjehl authored
Showing with 3 additions and 3 deletions.
  1. +3 −0  js/jquery.mobile.init.js
  2. +0 −3  js/jquery.mobile.navigation.js
3  js/jquery.mobile.init.js
View
@@ -122,6 +122,9 @@ define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.support", "./jquery
// cue page loading message
$.mobile.showPageLoadingMsg();
+
+ //remove initial build class (only present on first pageshow)
+ $html.removeClass( "ui-mobile-rendering" );
// if hashchange listening is disabled or there's no hash deeplink, change to the first page in the DOM
if ( !$.mobile.hashListeningEnabled || !$.mobile.path.stripHash( location.hash ) ) {
3  js/jquery.mobile.navigation.js
View
@@ -1085,9 +1085,6 @@ define( [
settings.duplicateCachedPage.remove();
}
- //remove initial build class (only present on first pageshow)
- $html.removeClass( "ui-mobile-rendering" );
-
// Send focus to the newly shown page. Moved from promise .done binding in transitionPages
// itself to avoid ie bug that reports offsetWidth as > 0 (core check for visibility)
// despite visibility: hidden addresses issue #2965
Please sign in to comment.
Something went wrong with that request. Please try again.