Welcome to WebmasterWorld Guest from 23.22.182.29

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

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 25, 2004
posts:861
votes: 23


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

Thanks.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members