pageremove


pageremove eventversion added: 1.0

Description: Triggered just before the framework attempts to remove an external page from the DOM.

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

By default, the framework removes any non active dynamically loaded external pages from the DOM as soon as the user navigates away to a different page. The pageremove event is dispatched just before the framework attempts to remove the page from the DOM.

This event is triggered just before the framework attempts to remove an external page from the DOM. Event callbacks can call preventDefault on the event object to prevent the page from being removed.