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");
精彩评论