iframe for ad loading good or bad?

Posted by Cedar Jensen on Stack Overflow See other posts from Stack Overflow or by Cedar Jensen
Published on 2010-04-12T23:07:48Z Indexed on 2010/04/12 23:13 UTC
Read the original article Hit count: 267

Filed under:
|
|
|

According to Yahoo's "Best Practices for Speeding Up your Site", the pros for using iframes:

  • Helps with slow third-party content like badges and ads
  • Download scripts in parallel

but the cons are:

  • Costly even if blank
  • Blocks page onload

I want to use an iframe to load ads using the technique mentioned on this site: http://meanderingpassage.com/2007/08/15/keeping-javascript-widgets-from-controlling-your-blog/

Does using this technique mean that as soon as the html contents requested by the iframe are returned to the client, it will load the ad script, potentially blocking the rest of the page's rendering and downloading? Or will the iframe request get processed concurrently while rest of the document is downloaded and rendered?

© Stack Overflow or respective owner

Related posts about html

Related posts about JavaScript