Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

Javascript display contained in <div>

Any reason to declare height and width?

7:02 pm on Apr 2, 2010 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Feb 25, 2004
votes: 40

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.)


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members