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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -