romeoyankee Posted June 21, 2008 Share Posted June 21, 2008 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 Link to comment https://forums.phpfreaks.com/topic/111266-load-php-include-after-the-rest-of-the-page-loads-basically-delay-it/ Share on other sites More sharing options...
DarkWater Posted June 21, 2008 Share Posted June 21, 2008 You can look into Ajax with an onload event for the page. When you first open the page, a "loading" graphic could show until you get the necessary info and then you dynamically fill it in. Link to comment https://forums.phpfreaks.com/topic/111266-load-php-include-after-the-rest-of-the-page-loads-basically-delay-it/#findComment-571112 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.