views:

350

answers:

3

Does inline css and javascript really affects to site SEO?

+3  A: 

Hardly. What counts for a search engine is textual content, it will filter out everything else.

I assume CSS comes into play with search engines when they determine whether a portion of text is visible on the page, or hidden for the purposes of SEO. But even there, whether the CSS inline or in a style sheet won't make a difference.

One could argue that the more CSS and JS a page contains, the less weight do search terms have on that page. But I think that argument is invalid, because any non-content content will simply be ignored altogether.

Pekka
yes this is also good article but author nothing mention about bad impact on SEO http://robertnyman.com/2008/11/20/why-inline-css-and-javascript-code-is-such-a-bad-thing/
metal-gear-solid
this is http://webdesign.about.com/od/css/a/aa073106.htm also a good article but it's also not saying anything about SEO but 3-4 yrs ago i had read that inline things affects SEO
metal-gear-solid
A: 

I don't think most spiders actually execute Javascript before parsing the page. If there's something you really want indexed, it's best to put it on the page as simple content. Bring it in via Ajax, constructing it on the fly via javascript, et. al, certainly will only hinder its SEO value. Tricky links that take form after being constructed by Javascript are also bad form -- a simple site map probably yields better value.

Vineel Shah
+2  A: 

As noted in another answer, any content created or modified by JavaScript is unlikely to be 'seen' by the search engines. Although this of course applies wherever you place the JS.

Depending on the size of your page and the capability of your hosting it could affect indexing. If the extra load is sufficient to start slowing your server's response to page requests then the search engines will slow their spidering and, for a large site, may not manage to crawl the entire site on a timely basis.

status203
correct and more descriptive than the answer chosen. the size is the problem, not the JS/CSS itself.
dusoft