Re: load the PHP script last on the page
| From: | John W. Holmes | Date: | Thu, 31 Jul 2003 18:19:57 +0000 |
| Subject: | Re: load the PHP script last on the page | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-157783@lists.php.net to get a copy of this message | ||
DougD wrote:
Sure. It is pretty basic stuff. I have the following <?php include ("weather/block.php"); ?> inserted in the middle of an HTML document to pull in the current weather. It delays the loading of the rest of the page too much as it queries to www.msn.com to pull weather data and then complete the script. If it were possible I want the include to occur after the rest of the page is loaded. Does that help?Ignoring the probably copyright violations your committing, how are you going to display the weather if you include the page after it's loaded? THe page is done, then... -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ PHP|Architect: A magazine for PHP Professionals – www.phparch.com