Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unload Prefetched Page using jQuery Mobile

With jQuery Mobile, I can manually prefetch an external page like so:

$.mobile.loadPage(
  "content.html",
  { showLoadMsg: true }
);

But ow do I manually remove that page from the memory; in a sense, "unload" it?

Thanks

like image 998
SaltProgrammer Avatar asked Mar 26 '26 01:03

SaltProgrammer


1 Answers

on your jqm-page if there's a id specified, you can do this.

$('#page2').remove();

example

another way is to use $.fn.jqmData(), $.fn.jqmRemoveData() refer here

like image 150
root Avatar answered Mar 28 '26 14:03

root



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!