Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

page loading

Status
Not open for further replies.

Regany

Programmer
Aug 27, 2004
72
0
0
LV
Is it possible to show web page only then when its completely loaded, meanwhile showing "loading" or something like that? How to do that?
 
within php you can use output buffering and set the buffer quite high. this means that the browser does not have to wait for script processing during the display. it gets the html once the script is processed.

but the browser still has to wait for the content to arrive over the internet, it then needs to parse the content to work out how to display it. different browsers do this differently.

thus output buffering is at most a partial solution.

there may well be tricks you can use to optimise the display in javascript. suggest you call in at the js forum!
 
You could do this easily in Javascript. The question is, why would you want to do it. Browsers have algorithms to download text first, images later and backgrounds the latest in order to give the user useful information as soon as possible, and you want to work against that? Wouldn't you rather have partial information while you wait then just stare at a blank Loading... sign? If not, forum216 is really the best place to visit.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top