jQuery Mobile: document ready vs page events

%1$s besuchenjQuery Mobile: document ready vs page events

Pageinit event will be executed every time page is about be be loaded and shown for the first time. It will not trigger again unless page is manually refreshed or ajax page loading is turned off. In case you want code to execute every time you visit a page it is better to use pagebeforeshow event.