Jump to content

load php include after the rest of the page loads.. basically delay it


romeoyankee

Recommended Posts

Ok so here is my problem.  I have a .html index file that I use and is based on a template that uses php includes to grab the info.

 

One of my php includes is for a news feed using rss2html.  The problem is that it takes  a while to load most of the time.  I always thought that the reason for <divs> was that they would load until the next div in order and not at all once.  My div with the news is half way down the page and the full page will not load until the news div/php include is ready.  I got help with these forums last week and came up with a bandaid fix which is to cache the news page and from the index load the cache page as a php include.  The problem with that is that I have set the cache for every 10 mins and the page loads fine for those 10 mins but after that the first page load after the cache expires is very slow again.  Once somebody loads it the first time it is fast again for another 10 mins.

 

Is there anything I can do to speed up the page load?  The site is www.cyow.ca

 

Is there anyway I can set it to load that specific php include after the rest of the site has loaded or something like that?

 

Thanks guys

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.