87,777
社区成员




//dom-ready inits
if ( $.mobile.autoInitializePage ) {
$.mobile.initializePage();
}
//automatically initialize the DOM when it's ready
autoInitializePage: true,
//remove initial build class (only present on first pageshow)
function hideRenderingClass() {
$html.removeClass( "ui-mobile-rendering" );
}
// Add mobile, initial load "rendering" classes to docEl
$html.addClass( "ui-mobile ui-mobile-rendering" );
// This is a fallback. If anything goes wrong (JS errors, etc), or events don't fire,
// this ensures the rendering class is removed after 5 seconds, so content is visible and accessible
setTimeout( hideRenderingClass, 5000 );
$.mobile.autoInitializePage = false;
$("html").removeAttr("class");