开发者

Does the iframe have any effect on page load time? Why not?

开发者 https://www.devze.com 2022-12-21 05:43 出处:网络
Like the headline says: What开发者_开发问答 effect does iframe have on page load time? Thanks.iFrames are somewhat costly, even when left blank when compared with other HTML elements.The biggest drawb

Like the headline says: What开发者_开发问答 effect does iframe have on page load time? Thanks.


iFrames are somewhat costly, even when left blank when compared with other HTML elements. The biggest drawback is that they block the window onload event until complete, which can make the users perceive that the page they requested is slow.

The do have their uses though in allowing you to compartmentalize external web pages or sandboxing another DOM structure outside of the main page.

Here is a good article on them

0

精彩评论

暂无评论...
验证码 换一张
取 消