Hi,
I am fairly new to PHP and have the following problem:
I need some help with the coding for PHP includes. I am trying to get a simple include: <?php require("nav.php") ?> to load after the page itself has been completely loaded.
Do I have to use the sleep() function for that? If yes, how exactly would my coding have to look in order to work.
The reason I would want to have a delay in a PHP include, is because I would like to have the basic page load first, so the visitor can start reading, etc. and then have some larger files load while the visitor is reading. I assuming, this would decrease page load time by having larger items load while the basic page has already been loaded.
Is this possible? I hope it makes sense.
Thank you for all of your help in advance. 🙂