Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

switched the order so that scroll check happens earlier.

  • Loading branch information...
commit 84f4d9dc3c36b908a73b1e82423bbd5fe9e68fe1 1 parent a09c53e
scottjehl authored
Showing with 5 additions and 7 deletions.
  1. +5 −7 js/jquery.mobile.init.js
View
12 js/jquery.mobile.init.js
@@ -100,12 +100,6 @@
}
}
});
-
- //dom-ready inits
- $( $.mobile.initializePage );
-
- //window load event
- //hide iOS browser chrome on load
//check which scrollTop value should be used by scrolling to 1 immediately
//then check what the scroll top is. Android will report 0... others 1
@@ -117,6 +111,10 @@
//so if it's 1, use 0 from now on
$.mobile.defaultHomeScroll = ( !$.support.scrollTop || $(window).scrollTop() === 1 ) ? 0 : 1;
- //call silentScroll on load to hide addr bar
+ //dom-ready inits
+ $( $.mobile.initializePage );
+
+ //window load event
+ //hide iOS browser chrome on load
$window.load( $.mobile.silentScroll );
})( jQuery, this );
Please sign in to comment.
Something went wrong with that request. Please try again.