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 -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -