Performance differences between iframe hiding methods?

Posted by Ender on Stack Overflow See other posts from Stack Overflow or by Ender
Published on 2010-04-29T15:51:25Z Indexed on 2010/04/29 15:57 UTC
Read the original article Hit count: 332

Filed under:
|

Is there a major performance difference between the following:

<iframe style="visibility:hidden" />

<iframe style="width:0px; height:0px; border:0px" />

I'm using a hidden iframe to pull down and parse some information from an external server. If the iframe actually attempts to render the page, this may suck up a lot of CPU cycles. Of course, I'd ideally just want to get the raw markup - for example, if I could prevent the iframe from loading img tags, that would be perfect.

© Stack Overflow or respective owner

Related posts about html

Related posts about iframe