Description:
|
Hi,
It is a jQuery Mobile recommendation to avoid using the document ready handler in combination with jQuery Mobile. In jQuery Mobile, Ajax is used to load the contents of each page into the DOM as you navigate, and the DOM ready handler only executes for the first page. It would be better to use an event such as the pageinit event [1] instead of document ready.
[1]: http://api.jquerymobile.com/pageinit/
|