General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old March 27th, 2004, 09:54 PM
Ilmaginen Ilmaginen is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 3 Ilmaginen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Pre-Loading

Well, just a question. I was wondering is it possible to pre-load a webpage?

Meaning, could I have a page load everything before you see everything, as in you see it all at once...rather than watching a bunch of things load randomly at different times?

Sorry for any inconvenience, and thank you in advance in any possible outcome.

Reply With Quote
  #2  
Old March 28th, 2004, 03:36 PM
Pheifel Pheifel is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: Denmark
Posts: 174 Pheifel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 43 m 46 sec
Reputation Power: 5
Send a message via MSN to Pheifel
You could try to look into...

You could look into JS (JavaScript) it has a preloadfunction, that enables you to preload all sorts of stuf

Reply With Quote
  #3  
Old March 28th, 2004, 05:17 PM
Ilmaginen Ilmaginen is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 3 Ilmaginen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Oh. Okay. I was thinking that it might be possible with PHP, since Javascript is Client Side (correct?) :-/.

Reply With Quote
  #4  
Old March 28th, 2004, 08:02 PM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
The HTML file has to download to the clients machine first. After that, the browser will read through the HTML line by line to find out what assests it needs to download off the server. You can attempt to force the browser to download all assests (images, etc) required as soon as the HTML file has loaded, using the Javascript "onLoad" event handler. This type of preloading can only be done client side, and the user must have JS enabled for it to work.

Server-side "preloading", called caching, is where you cache the output of your often used PHP scripts, to save CPU cycles on the server.
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
  #5  
Old March 28th, 2004, 08:48 PM
Ilmaginen Ilmaginen is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 3 Ilmaginen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Could you explain the caching please?

Reply With Quote
  #6  
Old March 28th, 2004, 08:55 PM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
I forgot to mention - non-dynamic assets (*.html, *.gif, *.jpg, etc) assests are cached on the client side by default by the browser.

Re: server-side caching - just google - there's heaps about it. E.g.
http://www.sitepoint.com/article/ph...gy-2-5-caching/
http://www.phpbuilder.com/news/item.php?id=174
http://meta.wikipedia.org/wiki/PHP_...nd_optimization

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Pre-Loading


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT