DEV Community

loading...

Discussion on: You can create these elements without JavaScript

Collapse
mindplay profile image
Rasmus Schultz

Why would on-page JS affect SEO? As long as the content is on the page (with proper semantics) it should be visible to search engines?

Collapse
iburn36360 profile image
Anthony Diaz

On-Page JS tends to slow the site down, and speed IS a huge ranking factor (Note that even small amounts of JS can add up to a huge amount of work, especially with DOM mutations since they cannot be pre-composed). That is not to say all JS is bad, but there are plenty of cases where your JS is hurting your ability for your site to perform adequately.