Jump to content


Photo

Please wait... splash screen


  • Please log in to reply
4 replies to this topic

#1 vaibhavs

vaibhavs
  • Members
  • PipPip
  • Member
  • 13 posts

Posted 08 October 2006 - 06:01 PM

Hi,

I have an HTML page which is a bit huge (almost 50KB).
On a slow internet connection it takes a while to load the page (about 7-10 sec).

I would like to display a small splash screen with a message like "Loading page pls wait) as soon as the page is requested and then this window automatically closes when the page is fully loaded.

Requesting for pointers / sample scripts using javascript / DHTML / CSS etc.

Thank you in advance.

regards,
Vai



#2 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 09 October 2006 - 12:49 AM

why is it so big????

only method that is going to really help you here is ajax... OR cache the page if its db driven and only changes on regular basis (like hourly or daily)
follow me on twitter @PHPsycho

#3 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 10 October 2006 - 03:40 PM

Yeah, you could play some games with hidden DIVs and onload handlers, but just make the page smaller.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

#4 vaibhavs

vaibhavs
  • Members
  • PipPip
  • Member
  • 13 posts

Posted 13 October 2006 - 04:13 PM

Yes fenway. I need to play a bit with DIVs.
Show DIV when the page is Loading and hide when the page has fully loaded.
Can you help me on this a bit.

Thank you in anticipation.
Cheers,
Vai

#5 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 13 October 2006 - 07:33 PM

Well, you can have the actual page in a DIV with display:none, and toggle it on the BODY onload.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users