Welcome to WebmasterWorld Guest from 54.227.110.209

Forum Moderators: open

Message Too Old, No Replies

Placing Javascript On/Off Page

     

anne10

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

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

5+ Year Member



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

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



thanks
 

Featured Threads

Hot Threads This Week

Hot Threads This Month