Skip to content

Commit 4feaa46

Browse files
author
scottjehl
committed
Moved the call to remove the ui-mobile-rendering class from the page transition done() promise to init JS. Fixes jquery-archive#3505 and Fixes jquery-archive#3516
1 parent 699e1a4 commit 4feaa46

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

js/jquery.mobile.init.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.support", "./jquery
122122

123123
// cue page loading message
124124
$.mobile.showPageLoadingMsg();
125+
126+
//remove initial build class (only present on first pageshow)
127+
$html.removeClass( "ui-mobile-rendering" );
125128

126129
// if hashchange listening is disabled or there's no hash deeplink, change to the first page in the DOM
127130
if ( !$.mobile.hashListeningEnabled || !$.mobile.path.stripHash( location.hash ) ) {

js/jquery.mobile.navigation.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,9 +1085,6 @@ define( [
10851085
settings.duplicateCachedPage.remove();
10861086
}
10871087

1088-
//remove initial build class (only present on first pageshow)
1089-
$html.removeClass( "ui-mobile-rendering" );
1090-
10911088
// Send focus to the newly shown page. Moved from promise .done binding in transitionPages
10921089
// itself to avoid ie bug that reports offsetWidth as > 0 (core check for visibility)
10931090
// despite visibility: hidden addresses issue #2965

0 commit comments

Comments
 (0)