pageinit eventversion added: 1.0, deprecated: 1.4

Description: Triggered on the page being initialized, after initialization occurs.

  • jQuery( ".selector" ).on( "pageinit", function( event ) { ... } )

We recommend binding to this event instead of DOM ready() because this will work regardless of whether the page is loaded directly or if the content is pulled into another page as part of the Ajax navigation system.

$( document ).on( "pageinit", "#aboutPage", function( event ) {
alert( "This page was just enhanced by jQuery Mobile!" );
Note: This event has been deprecated in 1.4.0 in favor of pagecreate. Simply replace pageinit in the above example.