You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
it would be nice to have an event triggered before a page is loaded.
For example, it can be useful for unbinding listeners in the previous page (specially in case of a multi page data like product list) or add tracking. The main advantage of using such event rather than changepage is that you can use them when you load page in background (directly using $.mobile.loadpage()).
The text was updated successfully, but these errors were encountered:
Just an FYI, this landed on the HEAD. The events to listen for are pagebeforeload, pageload, and pageloadfailed. A data object is passed as the 2nd arg of a bound callback. The data for all 3 events contain an url and absUrl properties. The pageload event data contains an additional property that is the jQuery collection that contains the page that was just loaded and inserted into the DOM.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
it would be nice to have an event triggered before a page is loaded.
For example, it can be useful for unbinding listeners in the previous page (specially in case of a multi page data like product list) or add tracking. The main advantage of using such event rather than changepage is that you can use them when you load page in background (directly using $.mobile.loadpage()).
The text was updated successfully, but these errors were encountered: