diff --git a/js/jquery.mobile.core.js b/js/jquery.mobile.core.js index 02bf8ac8..9cb3a928 100644 --- a/js/jquery.mobile.core.js +++ b/js/jquery.mobile.core.js @@ -47,6 +47,9 @@ // Error response message - appears when an Ajax page request fails pageLoadErrorMessage: "Error Loading Page", + + //automatically initialize the DOM when it's ready + autoInitializePage: true, // Support conditions that must be met in order to proceed // default enhanced qualifications are media query support OR IE 7+ diff --git a/js/jquery.mobile.init.js b/js/jquery.mobile.init.js index b987993f..b855dd66 100644 --- a/js/jquery.mobile.init.js +++ b/js/jquery.mobile.init.js @@ -124,8 +124,10 @@ $.mobile.defaultHomeScroll = ( !$.support.scrollTop || $(window).scrollTop() === 1 ) ? 0 : 1; //dom-ready inits - $( $.mobile.initializePage ); - + if( $.mobile.autoInitializePage ){ + $( $.mobile.initializePage ); + } + //window load event //hide iOS browser chrome on load $window.load( $.mobile.silentScroll );