homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Javascript display contained in <div>
Any reason to declare height and width?

WebmasterWorld Senior Member 10+ Year Member

Msg#: 4109048 posted 7:02 pm on Apr 2, 2010 (gmt 0)

I'm placing some Adsense javascript code in a <div>. The javascript declares a height and width of the ad.

Is there any advantage to declaring a height and width for the containing <div> also, in regards to how the page loads?

(Such as, a defined space is set aside for the Adsense unit and the rest of the page continues to render even though the download of the Adsense javascript hasn't been completed yet? - Similar to how declaring height and width for an image tag is an advantage.)



Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved