javascript - How to change page's html with ajax and jquery? -


i change page in mobile app. window.location.href = 'sth.html' works, problem is, time between change (when see white screen under changing).

i know jquery mobile simple, don't want use jqm.

are know methods?

you can send http request sth.html ajax , make sure allow caching on server.

only after request completes redirect.

that cause browser load page sth.html cache , not server , should eliminate white screen.


Comments