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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice Adrian, I preach this a lot, I've had plenty of SEO success from reducing on-page JavaScript as Google isn't good at reading it 👌
Thank you! Glad you found it helpful
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?
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.