Reputation: 683
Am doing the following when using JQM. Please let me know the impact.
Please provide your valuable inputs so that it will help others who are looking out for the same topic.
Upvotes: 0
Views: 78
Reputation: 2917
Impacts:
Caching pages
keep previously-visited pages in the DOM
instead of
removing them, so that they are available instantly if the user
returns to them.
To remove caching, you could do,
$(document).bind("mobileinit", function(){
$.mobile.page.prototype.options.domCache = false;
});
If you are not caching page, previous page will not be instantly available.
The drawback of DOM
caching
is that the DOM
can get very large,
resulting in slowdowns
and memory issues
on some devices
data-ajax="false"
will be loaded with full refreshment of the page, with no animated transition
For setting expiration of page Refer link4
If you disable ajax
completely, there will not be a smooth animated transition to your next page
Upvotes: 1