PHP Classes

Alternate method?

Recommend this page to a friend!

      PHP Classes blog  >  Accelerate Page Loadi...  >  All threads  >  Alternate method?  >  (Un) Subscribe thread alerts  
Subject:Alternate method?
Summary:delay load an Iframe?
Messages:2
Author:eXcaliburN
Date:2011-01-11 17:54:31
Update:2011-01-12 01:36:22
 

 


  1. Alternate method?   Reply   Report abuse  
Picture of eXcaliburN eXcaliburN - 2011-01-12 00:32:08
perhaps put advertising in another page, load an iframe to dimensions for layout/design.

and once the page loads use JS to set the iframe src to the advertising page specified.

This _should_ circumvent the described issues - but I'm not sure how the various browsers handle iframe objects.

  2. Re: Alternate method?   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2011-01-12 01:36:22 - In reply to message 1 from eXcaliburN
iframes are not convenient to place targeted ads like Google AdSense.

AdSense needs to determine the current page URL so it can send a robot to scan the page and determine what ads should be displayed.

If you use iframes, they have their own URL that is different from the URL of the page they are inserted.

Anyway, the current solution already works in all browsers.