[ACCEPTED]-Does inline CSS and JavaScript really affect site SEO?-seo

Accepted answer
Score: 14

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

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

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

Score: 7

Answered and voted for by true developers.

In-line 23 CSS will contribute to the payload of the 22 page and that affects the load speed. Load 21 speed is one of many ranking factors so 20 it's almost an impossible question to answer 19 conclusively.

The text to code ratio also 18 plays a role. Tons of code to render a few 17 lines of visible text means that search 16 engines need to dig deeper to find the content 15 relevancy in pages. Matt Cutts has alluded 14 to this a few times.

While search engines 13 may ignore comments and in-line css/js the 12 bandwidth, processing and storage logistics 11 may be motivation enough to dampen the SEO 10 performance to some degree on heavy in-line 9 css pages.

Personally I use in-line code 8 only when absolutely page specific scenarios 7 require it and even then I use css compression 6 tools to reduce white space in the documents 5 when ready for production.

I have had this 4 conversation on many occasions and no neither 3 side is conclusive. My simple answer is, if 2 it "could" be detrimental then why risk 1 it.

Score: 0

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

Score: 0

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

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

Score: 0

Search Engine mainly read textual part of 6 the website.But there are many factor that 5 include that effects seo. Using table template, and 4 even using inline css make the page load 3 time a little more. even if you can check 2 on html validators it marks all inline ccs 1 as error.Slower responsive time for site.

Score: 0

javascript increases the site's load time. I 6 believe that is how it may affect your site's 5 rankings. Head over to https://developers.google.com/speed/pagespeed/insights/ and test your URL. Sometimes 4 using javascript on the first view of your 3 website delays the page load as content 2 is displayed only after the script is rendered. That 1 may hurt user experience and SEO.

More Related questions