This document discusses common JavaScript bugs that can cause SEO problems and how to identify and fix them. It identifies 7 common JS bugs like pages not fully rendering or having incomplete content. It recommends crawling thousands of pages to identify issues, setting up JavaScript error monitoring in tools like Screaming Frog, and ensuring JS requests are excluded from log file analysis. The key takeaways are that JS SEO is about troubleshooting, communication with developers is important, and tools are needed to do JS QA at scale.
1 of 31
Download to read offline
More Related Content
How to fix JavaScript SEO problems on a scale
1. How to fix JavaScript
SEO problems on a
scale
Serge Bezborodov
JetOctopus
slideshare.net/sergebezborodov
@sergebezborodov
9. JetOctopus Serge Bezborodov
JS Bug #1: Page cant be fully rendered
-page loads quite a long time
-page cant be fully rendered (you dont see a footer)
-page became fully loaded after some interaction (scroll, click)
test cases:
10. JetOctopus Serge Bezborodov
JS Bug #2: Incomplete content
-page misses some content blocks
-JavaScript removes some content (Im not joking)
test cases:
11. JetOctopus Serge Bezborodov
JS Bug #3: JavaScript redirects
window.location.href = /new-page.html
redirect without 301/302 server status codes
JavaScript Code:
14. JetOctopus Serge Bezborodov
JS Bug #6: SSR misses some content
-SSR should have the same content as the client-rendered
page (with very few exceptions)
-make custom extraction rules for blocks, elements, or text
test cases:
15. JetOctopus Serge Bezborodov
JS Bug #7: Changed titles, meta by JS
-JavaScript may change page title, meta description
-JavaScript may change <meta name=robots>
test cases:
16. JetOctopus Serge Bezborodov
JS Bug #7: robots.txt - shot in the foot
- robots.txt rules are applied to JavaScript files as well
- subdomains may have their own robots.txt (huge attention here!!!)
- never analyze robots.txt only by eyes, use the tools!
17. JetOctopus Serge Bezborodov
JS Bug #7: robots.txt - shot in the foot
pages with ?utm_source will not be crawled by Googlebot
18. JetOctopus Serge Bezborodov
JS Bug #7: robots.txt - shot in the foot
and JavaScript files as well
page may be not rendered fully
30. JetOctopus Serge Bezborodov
Conclusions
-JavaScript is already with us and wont go shortly
-JavaScript SEO is all about troubleshooting
-you can do almost nothing by yourself
-make strong communication with the developers' team
-without tools, its impossible to do it on a scale