homepage Welcome to WebmasterWorld Guest from 54.227.141.230
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Placing Javascript On/Off Page
anne10




msg:4205157
 7:22 am on Sep 22, 2010 (gmt 0)

Hi,

From SEO point of view is it good to have Javascript or CSS On-Page / Off-Page.

Thanks

 

morehawes




msg:4205240
 12:19 pm on Sep 22, 2010 (gmt 0)

Hi and welcome to Webmaster World!

It is best practise to have your Javascript in an external file. There are a few reasons for this like being able to link to the file from multiple pages but from an SEO standpoint it will reduce page bloat / load time. Yahoo explains this pretty well here [developer.yahoo.com...]

Quoting from the above link ...

JavaScript and CSS that are inlined in HTML documents get downloaded every time the HTML document is requested. This reduces the number of HTTP requests that are needed, but increases the size of the HTML document. On the other hand, if the JavaScript and CSS are in external files cached by the browser, the size of the HTML document is reduced without increasing the number of HTTP requests.

anne10




msg:4205276
 2:06 pm on Sep 22, 2010 (gmt 0)

thanks

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved