pagebeforeshow eventversion added: 1.0, deprecated: 1.4.0

Description: Triggered on the "toPage" we are transitioning to, before the actual transition animation is kicked off.

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

Note: The triggering of this event is deprecated as of jQuery Mobile 1.4.0. It will no longer be triggered in 1.6.0.

The replacement for pagebeforeshow is the pagecontainer widget's pagecontainerbeforeshow event. In jQuery Mobile 1.4.0, the two events are identical except for their name and the fact that pagecontainerbeforeshow is triggered on the pagecontainer, whereas pagebeforeshow is triggered on the page.