开发者

PHP Infinite Sleep

开发者 https://www.devze.com 2023-03-16 11:28 出处:网络
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.

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

精彩评论

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