开发者

PHP Infinite Sleep

My web page has the following sleep line in it:

sleep(600);

For the user, it will appear as if the page is loading "forever". This effect is desired.

However, this will create a process that lasts for 10 minutes, eating up system resources. Is there a way to create the same effect for a user (loading "for开发者_JAVA技巧ever") without having a lengthy process?


Try using a jQuery script. Is that something that would work, because it is a design reason right? Or am I thinking wrong.

body {display: none}

Then for some jquery

$("body").delay(MILLISECOND_WAIT).attr("display", "block");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜