阅读背景:

jQuery - 仅在ajax调用超过一秒时才显示加载图像?

来源:互联网 

Is it possible to show the "Loading.." animation only if the ajax call takes more than say, one second? Some of my ajax calls are pretty fast but I still see the loading icon for a fraction of a second before it disappears. May be it's just me, but I find it distracting. I don't want to remove it altogether though. Any suggestions? Here's my code -Is it possible to show the "Loading.." animatio




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: