SaltProgrammer
SaltProgrammer

Reputation: 1055

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

Upvotes: 3

Views: 1286

Answers (1)

root
root

Reputation: 1583

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

Upvotes: 2

Related Questions