domWrite() lazy loading ads: external code using document.write() - execution AFTER the page has rendered

From: Date: Fri, 07 Nov 2008 19:12:48 +0000
Subject: domWrite() lazy loading ads: external code using document.write() - execution AFTER the page has rendered
Groups: php.general 
Request: Send a blank email to php-general+get-283083@lists.php.net to get a copy of this message
Friend of mine wrote this article that might be of interest to you: Often there is advertizing code to be implemented in a page, and there are 2 problems one may face: (1) the website hangs due to a lag on the code delivering server (2) you normally cannot lazy load the script since document.write() is used inside the foreign code which only works during rendering of the page. This is a snippet that allows the asynchronous loading and delayed execution of JS code that contains document.write() statements in the context of a DIV element: http://blog.phpbuero.de/?p=26

« previous php.general (#283083) next »