With using the jQuery .load() function, I find that at initial load, my web page performing the .load() routine tends to jolt/flicker for a sec when loading.
Once loaded though, the page is displayed instantaneously.
Can anyone suggest a means of perhaps loading these pages into cache or some other means to prevent this jolt/flicker when loading?
开发者_C百科Thanks.
I had this same issue. Here's a trick. Make sure you load your data into a div that you have hidden with .hide(). Then to make the data you just appended or loaded into there visible, just do .show. This way, it will fade in instead of jolting in. You can also use the jQuery slideDown() or slideUp() which is essentially the same as show().
加载中,请稍侯......
精彩评论