resources - PHP Infinite Sleep -


my web page has following sleep line in it:

sleep(600); 

for user, appear if page loading "forever". effect desired.

however, create process lasts 10 minutes, eating system resources. there way create same effect user (loading "forever") without having lengthy process?

try using jquery script. work, because design reason right? or thinking wrong.

body {display: none} 

then jquery

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

Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -