SlideShare a Scribd company logo
#SMX #15A @PatrickStox
What SEOs Need To Know
SEO FOR JAVASCRIPT
FRAMEWORKS
#SMX #15A @PatrickStox
• Technical SEO for IBM - Opinions expressed are my own and not
those of IBM.
• I write, mainly for Search Engine Land
• I speak at some conferences like this one, Pubcon, TechSEO Boost
• Organizer for the Raleigh SEO Meetup (most successful in US)
• We also run a conference, the Raleigh SEO Conference
• Also the Beer & SEO Meetup (because beer)
• 2017 US Search Awards Judge, 2017 UK Search Awards Judge, 2018
Interactive Marketing Awards Judge
Who is Patrick Stox?
#SMX #15A @PatrickStox
Why do SEOs need to learn about JS?
#SMX #15A @PatrickStox
The content blocks make it into more of a page builder
https://testgutenberg.com/
WordPress is replacing their TinyMCE editor with
Gutenberg, built in React
#SMX #15A @PatrickStox
Many of these Developers haven’t worked with SEOs before and
many of the SEOs don’t understand how JavaScript works or how
search engines handle it.
What’s an SEO to do?
#SMX #15A @PatrickStox
Their focus is usually on functionality. Things like SEO and
Accessibility often aren’t their priority.
What about the Developers?
#SMX #15A @PatrickStox
#SMX #15A @PatrickStox
JS Things You Should Know
#SMX #15A @PatrickStox
Search Engines don’t interact with the Page
Content should be loaded by default, not based on a user
interaction like click, mouseover, or scroll
#SMX #15A @PatrickStox
Problem: with JS, you don’t actually have to change the
URL to change the Content
#SMX #15A @PatrickStox
AJAX Crawling Scheme – Deprecated in 2015
Support for this is ENDING – Google will render #! URL
Change URL structure: example.com/#url >> example.com/#!url
Google and Bing would request: example.com/?_escaped_fragment_=url
Server would return an HTML snapshot
Google and Bing index example.com/#!url with content from
example.com/?_escaped_fragment_=url
#SMX #15A @PatrickStox
You really want Clean URLS
To change URLs for different content, usually History API and
HTML5 pushstate() are used.
Most of the frameworks have a router allowing you to customize.
/en/us?Topics%5B0%5D%5B0%5D=cat.topic%3Ainfrastructure
Create patterns to match
/{language}/{country}/{category}/{slug}
#SMX #15A @PatrickStox
It’s hard to 404
You can add a noindex to any error pages along with a message.
Will be treated as a soft-404.
JS redirect to an actual 404 page that returns the status code.
Create a 404 Route.
#SMX #15A @PatrickStox
Links
You still *should use* <a href=
ng-click, onclick, href=“javascript:void(0);” – these won’t be seen as
links unless you include the <a href= also.
#SMX #15A @PatrickStox
Links
You still *should* use <a href=
ng-click, onclick, href=“javascript:void(0);” – these won’t be seen as
links unless you include the <a href= also.
In my experience, if it remotely looks like a link or has a / in it,
Google will probably crawl it.
#SMX #15A @PatrickStox
What’s the Setup?
#SMX #15A @PatrickStox
This one is the troublemaker.
Rendered in the users browser or by search engine.
Client-Side Rendering
#SMX #15A @PatrickStox
Longer to load and process but everything is available and can be
changed quickly. A loading image is typically used but you may see
a blank page.
Why Client-Side Rendering?
#SMX #15A @PatrickStox
#SMX #15A @PatrickStox
The server processes JS and sends the processed HTML to users or
search engines.
Slower TTFB unless you cache, will work for the ~2% of users with
JS disabled.
Server-Side Rendering (SSR)
#SMX #15A @PatrickStox
A headless browser records the DOM (Document Object Model)
and creates an HTML snapshot. Like SSR, but done pre-
deployment.
Prerender.io, BromBone, PhantomJS
May not serve the latest version, doesn’t allow for personalization,
will work for the ~2% of users with JS disabled.
Pre-Rendering
#SMX #15A @PatrickStox
Serves a rendered version
on load but then replaces
with JS for subsequent
loads.
This is probably the best
setup, but it can be a lot of
resources to load.
Hybrid Rendering – Isomorphic or Universal
#SMX #15A @PatrickStox
Send normal client side rendered content to users and sending SSR
content to search engines.
Dynamic Rendering – A Policy Change
#SMX #15A @PatrickStox
The content should probably match.
Isn’t that Cloaking???
#SMX #15A @PatrickStox
Puppeteer - Node JS library to control headless Chrome
developers.google.com/web/tools/puppeteer/
Rendertron - Dockerized headless Chrome rendering solution
github.com/GoogleChrome/rendertron
Tools for Dynamic Rendering
#SMX #15A @PatrickStox
What about other Search Engines?
#SMX #15A @PatrickStox
Bing
Bing confirmed support for JSON-LD
https://searchengineland.com/bing-confirmed-support-json-ld-
formatted-schema-org-markup-293508
Fabrice Canel of Bing said at Pubcon Vegas 2017 that Bing
processes JS.
#SMX #15A @PatrickStox
Bing
#SMX #15A @PatrickStox
Bing
With JS
Without JS
#SMX #15A @PatrickStox
Yandex
#SMX #15A @PatrickStox
With JS
Without JS
Yandex
#SMX #15A @PatrickStox
So don’t use client-side rendered JS.
I’ve got maybe 5 examples of JS rendering on other
search engines and hundreds where it doesn’t
#SMX #15A @PatrickStox
Share these #SMXInsights on your social channels!
#SMXInsights
Try to avoid Client-side rendered JS. Other
options include:
– Server-side render
– Pre-render
– Hybrid render
– Dynamic render
#SMX #15A @PatrickStox
So you want to do Client-Side Rendering…
#SMX #15A @PatrickStox
Second Indexing
#SMX #15A @PatrickStox
Second Indexing?
#SMX #15A @PatrickStox
Share these #SMXInsights on your social channels!
#SMXInsights
There is a second wave of indexing for
client side rendered JS websites. The 1st is
an HTML snapshot and the second one
comes later, after the Web Rendering
Service (WRS) processes the code.
#SMX #15A @PatrickStox
What does Second Indexing mean for you?
• You may not find your content yet using site:domain/page “phrase”
#SMX #15A @PatrickStox
What does Second Indexing mean for you?
• You may not find your content yet using site:domain/page “phrase”
• You’ll see errors in the GSC HTML Improvements Report
#SMX #15A @PatrickStox
What does Second Indexing mean for you?
• You may not find your content yet using site:domain/page “phrase”
• You’ll see errors in the GSC HTML Improvements Report
• You might need to check the source code vs the DOM to see what
will change once the Web Rendering Service (WRS) renders the
page
#SMX #15A @PatrickStox
What does Second Indexing mean for you?
• You may not find your content yet using site:domain/page “phrase”
• You’ll see errors in the GSC HTML Improvements Report
• You might need to check the source code vs the DOM to see what
will change once the Web Rendering Service (WRS) renders the
page
• Nofollow added via JS is a bad idea because it may show as follow
before rendered
#SMX #15A @PatrickStox
What does Second Indexing mean for you?
• You may not find your content yet using site:domain/page “phrase”
• You’ll see errors in the GSC HTML Improvements Report
• You might need to check the source code vs the DOM to see what
will change once the Web Rendering Service (WRS) renders the
page
• Nofollow added via JS is a bad idea because it may show as follow
before rendered
• Internal links may not be picked up and added to crawl before the
render happens
#SMX #15A @PatrickStox
Canonical tags
Google says they don’t look at the canonical tag on the second
wave of indexing.
#SMX #15A @PatrickStox
Canonical tags
Were all those people who injected canonical tags with JS and
systems like Google Tag Manager wasting their time?
Let’s find out! I setup a test on a website that didn’t have a
canonical set and have injected a canonical that points to another
website. Is https://www.stoxseo.com/ indexed as
https://patrickstox.com/? Search Google for info:stoxseo.com
#SMX #15A @PatrickStox
Canonical tags
Stoxseo.com is being treated as patrickstox.com, so Google is
respecting my canonical inserted with JavaScript even though they
said at Google I/O 2018 that they don’t.
#SMX #15A @PatrickStox
Share these #SMXInsights on your social channels!
#SMXInsights
Does Google respect canonical tags
injected with JavaScript? They said at
Google I/O 2018 that they don’t, but my
test is live and shows they do. Search
Google for info:stoxseo.com cc: @johnmu
#SMX #15A @PatrickStox
https://developers.google.com/search/docs/guides/rendering
What’s the Web Rendering Service (WRS)?
#SMX #15A @PatrickStox
Share these #SMXInsights on your social channels!
#SMXInsights
Lots of things supported by modern
browsers aren’t supported by Chrome 41.
Graceful degradation and polyfills are
important for now, although Google hopes
to update to the latest Chrome this year.
https://caniuse.com/#compare=chrome+41
,chrome+69
#SMX #15A @PatrickStox
Googlebot and WRS only speaks HTTP/1.x and FTP, with and
without TLS.
WRS and Googlebot doesn't support WebSocket protocol
#SMX #15A @PatrickStox
Use feature detection to identify supported APIs and capabilities of
the WRS, and polyfills where applicable — just as you would for any
other browser — as the capabilities of WRS may update at any
time:
• IndexedDB and WebSQL interfaces are disabled.
• Interfaces defined by the Service Worker specification are
disabled.
• WebGL interface is disabled; 3D and VR content is not currently
indexed.
WRS disables some interfaces and capabilities
#SMX #15A @PatrickStox
WRS loads each URL, following server and client redirects, same as
a regular browser. However, WRS does not retain state across page
loads:
• Local Storage and Session Storage data are cleared across page
loads.
• HTTP Cookies are cleared across page loads.
Googlebot and WRS are stateless across page loads
#SMX #15A @PatrickStox
Any features that requires user consent are auto-declined by the
Googlebot. For a full list of affected features, refer to
the Permission Registry. For example, Camera API, Geolocation
API, and Notifications API.
WRS declines permission requests
#SMX #15A @PatrickStox
Googlebot is designed to be a good citizen of the web. Crawling is
its main priority, while making sure it doesn't degrade the
experience of users visiting the site. Googlebot and WRS
continuously analyze and identify resources that don’t contribute
to essential page content and may not fetch such resources. For
example, reporting and error requests that don’t contribute to
essential page content, and other similar types of requests are
unused or unnecessary to extract essential page content.
Googlebot and WRS prioritize essential page content
#SMX #15A @PatrickStox
Mostly crawls from West Coast US (Mountain View).
According to Gary Illyes at SMX Advanced 2017 they don’t throttle
speeds when checking mobile sites.
They are very aggressive with caching everything (you may want to
use file versioning). This can lead to some impossible states being
indexed if parts of old files are cached.
Other things to know about Googlebot and the WRS
#SMX #15A @PatrickStox
In fact, because of the caching and you know being a bot and all,
they actually run things as fast as they can with a sped up clock.
Check out this post from Tom Anthony
http://www.tomanthony.co.uk/blog/googlebot-javascript-random/
Googlebot runs fast
#SMX #15A @PatrickStox
Because of this experiment from Max Prin, most people believe
that Googlebot will only wait 5 seconds for a page to load.
https://maxxeight.com/tests/js-timer/
5 second rule
#SMX #15A @PatrickStox
#SMX #15A @PatrickStox
Share these #SMXInsights on your social channels!
#SMXInsights
There is no fixed timeout of 5 seconds for
Googlebot as is commonly believed for
JS. Between aggressive caching and
running things as fast as possible, there is
no known or fixed limit.
#SMX #15A @PatrickStox
Share these #SMXInsights on your social channels!
#SMXInsights
Googlebot renders with a long viewport.
Mobile screen size is 431 X 731 and
Google resizes to 12,140 pixels high, while
the desktop version is 768 X 1024 but
Google only resizes to 9,307 pixels high.
Credit to JR Oakes @jroakes
https://codeseo.io/console-log-hacking-for-
googlebot/
#SMX #15A @PatrickStox
Troubleshooting JS
#SMX #15A @PatrickStox
Both of these are raw HTML, before JS has been processed and
they’re unreliable.
Cache can process the JS as it was but it’s being processed in your
browser, making it deceptive. This isn’t what Google saw.
View Source and Google’s Cache
#SMX #15A @PatrickStox
Viewing the DOM shows you the HTML after the JS has been
processed.
If you want to make sure Google sees it, load in the DOM by default
without needing an action like click or scroll.
Inspect or Inspect Element
#SMX #15A @PatrickStox
Search Google: site:domain.com “snippet of text from your page”
If the second indexing hasn’t happened, this may not show a result.
To check indexing
#SMX #15A @PatrickStox
Google Search Console / Fetch and Render - renders a page with
Googlebot as either desktop or mobile and lists blocked /
unreachable resources. It does not show the processed DOM or
have a debug mode.
Lets you submit rendered pages to Google search for indexing. This
is stricter than the system normally used. Just because you submit
to index after fetch and render doesn’t mean the WRS has
processed the page for second indexing!
Render a page as Googlebot
#SMX #15A @PatrickStox
Google Mobile Friendly Test - renders a page with smartphone
Googlebot. It does have the processed DOM (source code) and a
debug mode (see page loading issues and JavaScript Console).
Render a page as Googlebot
#SMX #15A @PatrickStox
Share these #SMXInsights on your social channels!
#SMXInsights
Google’s Mobile Friendly Test
https://search.google.com/test/mobile-
friendly is currently the best way to see
what Google sees for a client-side rendered
JS website. It shows the processed DOM
and has a JavaScript Console.
#SMX #15A @PatrickStox
Google Rich Results Test shows rendered DOM (desktop)
Render a page as Googlebot
#SMX #15A @PatrickStox
Sometimes you may see another website that had the same basic
HTML as your website indexed instead of your own. Check with
info:domain/page as this will usually indicate the second indexing
hasn’t happened yet.
What about using the same raw HTML?
#SMX #15A @PatrickStox
LEARN MORE: UPCOMING @SMX EVENTS
THANK YOU!
SEE YOU AT THE NEXT #SMX

More Related Content

What's hot (20)

PPTX
Better Safe Than Sorry with HTTPS - SMX East 2016 - Patrick Stox
patrickstox
 
PPTX
SearchLove London 2016 | Dom Woodman | How to Get Insight From Your Logs
Distilled
 
PPTX
What's Next for Page Experience - SMX Next 2021 - Patrick Stox
Ahrefs
 
PPTX
SMX Advanced 2018 Solving Complex SEO Problems by Patrick Stox
patrickstox
 
PPTX
NLP Sitemap SMX 2016 Patrick Stox Latest In Advanced Technical SEO
patrickstox
 
PPTX
AMP for Enterprises - SMX West - Patrick Stox
patrickstox
 
PPTX
A Crash Course in Technical SEO from Patrick Stox - Beer & SEO Meetup May 2019
patrickstox
 
PPTX
Page Experience Update TMC June 2021 Patrick Stox
patrickstox
 
PDF
Challenges of building a search engine like web rendering service
Giacomo Zecchini
 
PDF
Migration Best Practices - SMX West 2019
Bastian Grimm
 
PPTX
JavaScript SEO Ungagged 2019 Patrick Stox
patrickstox
 
PDF
Browser Changes That Will Impact SEO From 2019-2020
Tom Anthony
 
PPTX
Structured Data & Schema.org - SMX Milan 2014
Bastian Grimm
 
PPTX
How to build simple web apps to automate your SEO tasks - BrightonSEO Spring ...
Charly Wargnier
 
PPTX
Troubleshooting Technical SEO Problems - Patrick Stox - Raleigh SEO Meetup
patrickstox
 
PPTX
What's in my SEO Toolbox: Linkbuilding Edition - SMX Milan 2014
Bastian Grimm
 
PDF
OK Google, Whats next? - OMT Wiesbaden 2018
Bastian Grimm
 
PDF
SEO Tools of the Trade - Barcelona Affiliate Conference 2014
Bastian Grimm
 
PPTX
Data Visualization for SEO
Ahrefs
 
PPTX
Rendering SEO (explained by Google's Martin Splitt)
Anton Shulke
 
Better Safe Than Sorry with HTTPS - SMX East 2016 - Patrick Stox
patrickstox
 
SearchLove London 2016 | Dom Woodman | How to Get Insight From Your Logs
Distilled
 
What's Next for Page Experience - SMX Next 2021 - Patrick Stox
Ahrefs
 
SMX Advanced 2018 Solving Complex SEO Problems by Patrick Stox
patrickstox
 
NLP Sitemap SMX 2016 Patrick Stox Latest In Advanced Technical SEO
patrickstox
 
AMP for Enterprises - SMX West - Patrick Stox
patrickstox
 
A Crash Course in Technical SEO from Patrick Stox - Beer & SEO Meetup May 2019
patrickstox
 
Page Experience Update TMC June 2021 Patrick Stox
patrickstox
 
Challenges of building a search engine like web rendering service
Giacomo Zecchini
 
Migration Best Practices - SMX West 2019
Bastian Grimm
 
JavaScript SEO Ungagged 2019 Patrick Stox
patrickstox
 
Browser Changes That Will Impact SEO From 2019-2020
Tom Anthony
 
Structured Data & Schema.org - SMX Milan 2014
Bastian Grimm
 
How to build simple web apps to automate your SEO tasks - BrightonSEO Spring ...
Charly Wargnier
 
Troubleshooting Technical SEO Problems - Patrick Stox - Raleigh SEO Meetup
patrickstox
 
What's in my SEO Toolbox: Linkbuilding Edition - SMX Milan 2014
Bastian Grimm
 
OK Google, Whats next? - OMT Wiesbaden 2018
Bastian Grimm
 
SEO Tools of the Trade - Barcelona Affiliate Conference 2014
Bastian Grimm
 
Data Visualization for SEO
Ahrefs
 
Rendering SEO (explained by Google's Martin Splitt)
Anton Shulke
 

Similar to SMX Advanced 2018 SEO for Javascript Frameworks by Patrick Stox (20)

PPTX
How Search Works
Ahrefs
 
PPTX
Solving Complex JavaScript Issues and Leveraging Semantic HTML5
Hamlet Batista
 
PDF
Dynamic Rendering - is this really an SEO silver bullet? SMX WEST
Onely
 
PDF
Modern SEO Players Guide
Michael King
 
PDF
SMX_DevTools_Monaco_2.pdf
Sara Moccand-Sayegh
 
PDF
Welcome to a new reality - DeepCrawl Webinar 2018
Bastian Grimm
 
PDF
Technical SEO Checklist For Developers.pdf
Bluebash
 
PPTX
Technical SEO: Crawl Space Management - SEOZone Istanbul 2014
Bastian Grimm
 
PPTX
TechSEO Boost 2017: SEO Best Practices for JavaScript T-Based Websites
Catalyst
 
PPTX
Max Prin - TechSEO Boost 2017 - SEO Best Practices For JavaScript-Based Websites
Max Prin
 
PDF
SearchLove London 2017 | Emily Grossman | From Website to Web-App: Fantastic ...
Distilled
 
PDF
The latest in site speed: advanced #webperf 2018
Anton Shulke
 
PDF
Migration Best Practices - Search Y 2019, Paris
Bastian Grimm
 
PPT
Make Web Not War 2010
iProspect Canada
 
PPTX
SEARCH Y - Bastian Grimm - Migrations Best Practices
SEARCH Y - Philippe Yonnet Evénements
 
PPTX
From Website to Web App - Indexing, Optimizing, and Auditing Experiences for ...
MobileMoxie
 
PPTX
L’importance du crawl du JavaScript : pourquoi, comment et pour quels bénéfic...
SEO Camp Association
 
PDF
JavaScript Tips & Tricks 2018 - SMX East
Onely
 
PDF
From Web Site to Web App: Fantastic Optimisations and Where To Find Them
MobileMoxie
 
PPT
International SEO: The Weird Technical Parts - Pubcon Vegas 2019 Patrick Stox
patrickstox
 
How Search Works
Ahrefs
 
Solving Complex JavaScript Issues and Leveraging Semantic HTML5
Hamlet Batista
 
Dynamic Rendering - is this really an SEO silver bullet? SMX WEST
Onely
 
Modern SEO Players Guide
Michael King
 
SMX_DevTools_Monaco_2.pdf
Sara Moccand-Sayegh
 
Welcome to a new reality - DeepCrawl Webinar 2018
Bastian Grimm
 
Technical SEO Checklist For Developers.pdf
Bluebash
 
Technical SEO: Crawl Space Management - SEOZone Istanbul 2014
Bastian Grimm
 
TechSEO Boost 2017: SEO Best Practices for JavaScript T-Based Websites
Catalyst
 
Max Prin - TechSEO Boost 2017 - SEO Best Practices For JavaScript-Based Websites
Max Prin
 
SearchLove London 2017 | Emily Grossman | From Website to Web-App: Fantastic ...
Distilled
 
The latest in site speed: advanced #webperf 2018
Anton Shulke
 
Migration Best Practices - Search Y 2019, Paris
Bastian Grimm
 
Make Web Not War 2010
iProspect Canada
 
SEARCH Y - Bastian Grimm - Migrations Best Practices
SEARCH Y - Philippe Yonnet Evénements
 
From Website to Web App - Indexing, Optimizing, and Auditing Experiences for ...
MobileMoxie
 
L’importance du crawl du JavaScript : pourquoi, comment et pour quels bénéfic...
SEO Camp Association
 
JavaScript Tips & Tricks 2018 - SMX East
Onely
 
From Web Site to Web App: Fantastic Optimisations and Where To Find Them
MobileMoxie
 
International SEO: The Weird Technical Parts - Pubcon Vegas 2019 Patrick Stox
patrickstox
 
Ad

More from patrickstox (12)

PPTX
A crash course into SEO and what moves the needle with scalable processes
patrickstox
 
PPTX
Where to focus your SEO efforts to have the most impact Digital Summit Atlant...
patrickstox
 
PPTX
Raleigh seo-most-valuable-seo-presentation-patrick-stox
patrickstox
 
PPTX
Nofollow UGC Sponsored SEO From Home Patrick Stox Ahrefs
patrickstox
 
PPTX
Nofollow UGC Sponsored SMX West 2020 Patrick Stox
patrickstox
 
PPTX
How to find other affiliates most successful content patrick stox
patrickstox
 
PPTX
Data Visualization for SEO
patrickstox
 
PPTX
Things Google Tries To Correct For You - SMX Advanced 2019 Insights Sessions ...
patrickstox
 
PPTX
Website Migrations at SMX Munich 2019 - Patrick Stox
patrickstox
 
PPTX
Mobile First Indexing - SMX Advanced 2017 - Patrick Stox
patrickstox
 
PPTX
Google Tag Manager Can Do What
patrickstox
 
PPTX
Link Reclamation Strategies
patrickstox
 
A crash course into SEO and what moves the needle with scalable processes
patrickstox
 
Where to focus your SEO efforts to have the most impact Digital Summit Atlant...
patrickstox
 
Raleigh seo-most-valuable-seo-presentation-patrick-stox
patrickstox
 
Nofollow UGC Sponsored SEO From Home Patrick Stox Ahrefs
patrickstox
 
Nofollow UGC Sponsored SMX West 2020 Patrick Stox
patrickstox
 
How to find other affiliates most successful content patrick stox
patrickstox
 
Data Visualization for SEO
patrickstox
 
Things Google Tries To Correct For You - SMX Advanced 2019 Insights Sessions ...
patrickstox
 
Website Migrations at SMX Munich 2019 - Patrick Stox
patrickstox
 
Mobile First Indexing - SMX Advanced 2017 - Patrick Stox
patrickstox
 
Google Tag Manager Can Do What
patrickstox
 
Link Reclamation Strategies
patrickstox
 
Ad

Recently uploaded (20)

PPTX
E-Commerce SEO Market in Dubai 2025: Trends, Insights & Strategy
Rankability
 
PDF
Presentation of Core Web Vitals, a metric of GSC
digitalkiranseo
 
PDF
The Dollar a Day Strategy Master Class - Your Hidden SEO Weapon - Dennis Yu, ...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
PDF
Next-Level Marketing: Smart Strategies for Smarter Businesses SEO, AEO & GEO ...
First DigiAdd
 
PPTX
Business Ethics and Corporate Governance-1.pptx
premshetty48
 
PPTX
Content Marketing Pitch for Assignment 5
Ugne T.
 
PDF
Kenya Media Landscape 2025 By GeoPoll Kenya
Moses Kemibaro
 
PDF
Apollo Global Management Redefining the Future of Alternative Asset Managemen...
visionary vogues magazine
 
PDF
🚨 Something Big Just Shook the SEO World – But Google Stayed Silent
ranjeet434953
 
PDF
Snapshot of Consumer Behaviors of May 2025-EOLiSurvey (EN).pdf
Eastern Online-iSURVEY
 
PPTX
Themordynamics Unit 2 Mechanical First year
TonderaiMayisiri
 
PDF
Leveraging AI, Storytelling, and Wellness to Engage a Hybrid Workforce and Ge...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
PPTX
On-Page SEO in 2025: Ranking Factors That Matter in the Latest Google Algorit...
Jaykumar Joshi
 
PPTX
June 24 - Webinar - Accelerate Growth with AEO.pptx
Amsive
 
PDF
SEO Warfare Master Class: Dominating Google in the AI Era - Dennis Yu, BlitzM...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
PPTX
Best Digital Marketing Agency in Jaipur
bittumalav02
 
PDF
From Chaos to Clarity: Building a 90-Day Digital Strategy That Actually Gets ...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
PDF
Optimizing Visibility for AI and Emerging Platforms Master Class - Steve Wiid...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
PDF
AI-Powered Marketing Master Class - Traditional Marketing Services to Marketi...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
PDF
From Invisible to Iconic: How to Outrank With Multi-Format AI SEO - Zhelinren...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
E-Commerce SEO Market in Dubai 2025: Trends, Insights & Strategy
Rankability
 
Presentation of Core Web Vitals, a metric of GSC
digitalkiranseo
 
The Dollar a Day Strategy Master Class - Your Hidden SEO Weapon - Dennis Yu, ...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
Next-Level Marketing: Smart Strategies for Smarter Businesses SEO, AEO & GEO ...
First DigiAdd
 
Business Ethics and Corporate Governance-1.pptx
premshetty48
 
Content Marketing Pitch for Assignment 5
Ugne T.
 
Kenya Media Landscape 2025 By GeoPoll Kenya
Moses Kemibaro
 
Apollo Global Management Redefining the Future of Alternative Asset Managemen...
visionary vogues magazine
 
🚨 Something Big Just Shook the SEO World – But Google Stayed Silent
ranjeet434953
 
Snapshot of Consumer Behaviors of May 2025-EOLiSurvey (EN).pdf
Eastern Online-iSURVEY
 
Themordynamics Unit 2 Mechanical First year
TonderaiMayisiri
 
Leveraging AI, Storytelling, and Wellness to Engage a Hybrid Workforce and Ge...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
On-Page SEO in 2025: Ranking Factors That Matter in the Latest Google Algorit...
Jaykumar Joshi
 
June 24 - Webinar - Accelerate Growth with AEO.pptx
Amsive
 
SEO Warfare Master Class: Dominating Google in the AI Era - Dennis Yu, BlitzM...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
Best Digital Marketing Agency in Jaipur
bittumalav02
 
From Chaos to Clarity: Building a 90-Day Digital Strategy That Actually Gets ...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
Optimizing Visibility for AI and Emerging Platforms Master Class - Steve Wiid...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
AI-Powered Marketing Master Class - Traditional Marketing Services to Marketi...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
From Invisible to Iconic: How to Outrank With Multi-Format AI SEO - Zhelinren...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 

SMX Advanced 2018 SEO for Javascript Frameworks by Patrick Stox

  • 1. #SMX #15A @PatrickStox What SEOs Need To Know SEO FOR JAVASCRIPT FRAMEWORKS
  • 2. #SMX #15A @PatrickStox • Technical SEO for IBM - Opinions expressed are my own and not those of IBM. • I write, mainly for Search Engine Land • I speak at some conferences like this one, Pubcon, TechSEO Boost • Organizer for the Raleigh SEO Meetup (most successful in US) • We also run a conference, the Raleigh SEO Conference • Also the Beer & SEO Meetup (because beer) • 2017 US Search Awards Judge, 2017 UK Search Awards Judge, 2018 Interactive Marketing Awards Judge Who is Patrick Stox?
  • 3. #SMX #15A @PatrickStox Why do SEOs need to learn about JS?
  • 4. #SMX #15A @PatrickStox The content blocks make it into more of a page builder https://testgutenberg.com/ WordPress is replacing their TinyMCE editor with Gutenberg, built in React
  • 5. #SMX #15A @PatrickStox Many of these Developers haven’t worked with SEOs before and many of the SEOs don’t understand how JavaScript works or how search engines handle it. What’s an SEO to do?
  • 6. #SMX #15A @PatrickStox Their focus is usually on functionality. Things like SEO and Accessibility often aren’t their priority. What about the Developers?
  • 8. #SMX #15A @PatrickStox JS Things You Should Know
  • 9. #SMX #15A @PatrickStox Search Engines don’t interact with the Page Content should be loaded by default, not based on a user interaction like click, mouseover, or scroll
  • 10. #SMX #15A @PatrickStox Problem: with JS, you don’t actually have to change the URL to change the Content
  • 11. #SMX #15A @PatrickStox AJAX Crawling Scheme – Deprecated in 2015 Support for this is ENDING – Google will render #! URL Change URL structure: example.com/#url >> example.com/#!url Google and Bing would request: example.com/?_escaped_fragment_=url Server would return an HTML snapshot Google and Bing index example.com/#!url with content from example.com/?_escaped_fragment_=url
  • 12. #SMX #15A @PatrickStox You really want Clean URLS To change URLs for different content, usually History API and HTML5 pushstate() are used. Most of the frameworks have a router allowing you to customize. /en/us?Topics%5B0%5D%5B0%5D=cat.topic%3Ainfrastructure Create patterns to match /{language}/{country}/{category}/{slug}
  • 13. #SMX #15A @PatrickStox It’s hard to 404 You can add a noindex to any error pages along with a message. Will be treated as a soft-404. JS redirect to an actual 404 page that returns the status code. Create a 404 Route.
  • 14. #SMX #15A @PatrickStox Links You still *should use* <a href= ng-click, onclick, href=“javascript:void(0);” – these won’t be seen as links unless you include the <a href= also.
  • 15. #SMX #15A @PatrickStox Links You still *should* use <a href= ng-click, onclick, href=“javascript:void(0);” – these won’t be seen as links unless you include the <a href= also. In my experience, if it remotely looks like a link or has a / in it, Google will probably crawl it.
  • 17. #SMX #15A @PatrickStox This one is the troublemaker. Rendered in the users browser or by search engine. Client-Side Rendering
  • 18. #SMX #15A @PatrickStox Longer to load and process but everything is available and can be changed quickly. A loading image is typically used but you may see a blank page. Why Client-Side Rendering?
  • 20. #SMX #15A @PatrickStox The server processes JS and sends the processed HTML to users or search engines. Slower TTFB unless you cache, will work for the ~2% of users with JS disabled. Server-Side Rendering (SSR)
  • 21. #SMX #15A @PatrickStox A headless browser records the DOM (Document Object Model) and creates an HTML snapshot. Like SSR, but done pre- deployment. Prerender.io, BromBone, PhantomJS May not serve the latest version, doesn’t allow for personalization, will work for the ~2% of users with JS disabled. Pre-Rendering
  • 22. #SMX #15A @PatrickStox Serves a rendered version on load but then replaces with JS for subsequent loads. This is probably the best setup, but it can be a lot of resources to load. Hybrid Rendering – Isomorphic or Universal
  • 23. #SMX #15A @PatrickStox Send normal client side rendered content to users and sending SSR content to search engines. Dynamic Rendering – A Policy Change
  • 24. #SMX #15A @PatrickStox The content should probably match. Isn’t that Cloaking???
  • 25. #SMX #15A @PatrickStox Puppeteer - Node JS library to control headless Chrome developers.google.com/web/tools/puppeteer/ Rendertron - Dockerized headless Chrome rendering solution github.com/GoogleChrome/rendertron Tools for Dynamic Rendering
  • 26. #SMX #15A @PatrickStox What about other Search Engines?
  • 27. #SMX #15A @PatrickStox Bing Bing confirmed support for JSON-LD https://searchengineland.com/bing-confirmed-support-json-ld- formatted-schema-org-markup-293508 Fabrice Canel of Bing said at Pubcon Vegas 2017 that Bing processes JS.
  • 31. #SMX #15A @PatrickStox With JS Without JS Yandex
  • 32. #SMX #15A @PatrickStox So don’t use client-side rendered JS. I’ve got maybe 5 examples of JS rendering on other search engines and hundreds where it doesn’t
  • 33. #SMX #15A @PatrickStox Share these #SMXInsights on your social channels! #SMXInsights Try to avoid Client-side rendered JS. Other options include: – Server-side render – Pre-render – Hybrid render – Dynamic render
  • 34. #SMX #15A @PatrickStox So you want to do Client-Side Rendering…
  • 37. #SMX #15A @PatrickStox Share these #SMXInsights on your social channels! #SMXInsights There is a second wave of indexing for client side rendered JS websites. The 1st is an HTML snapshot and the second one comes later, after the Web Rendering Service (WRS) processes the code.
  • 38. #SMX #15A @PatrickStox What does Second Indexing mean for you? • You may not find your content yet using site:domain/page “phrase”
  • 39. #SMX #15A @PatrickStox What does Second Indexing mean for you? • You may not find your content yet using site:domain/page “phrase” • You’ll see errors in the GSC HTML Improvements Report
  • 40. #SMX #15A @PatrickStox What does Second Indexing mean for you? • You may not find your content yet using site:domain/page “phrase” • You’ll see errors in the GSC HTML Improvements Report • You might need to check the source code vs the DOM to see what will change once the Web Rendering Service (WRS) renders the page
  • 41. #SMX #15A @PatrickStox What does Second Indexing mean for you? • You may not find your content yet using site:domain/page “phrase” • You’ll see errors in the GSC HTML Improvements Report • You might need to check the source code vs the DOM to see what will change once the Web Rendering Service (WRS) renders the page • Nofollow added via JS is a bad idea because it may show as follow before rendered
  • 42. #SMX #15A @PatrickStox What does Second Indexing mean for you? • You may not find your content yet using site:domain/page “phrase” • You’ll see errors in the GSC HTML Improvements Report • You might need to check the source code vs the DOM to see what will change once the Web Rendering Service (WRS) renders the page • Nofollow added via JS is a bad idea because it may show as follow before rendered • Internal links may not be picked up and added to crawl before the render happens
  • 43. #SMX #15A @PatrickStox Canonical tags Google says they don’t look at the canonical tag on the second wave of indexing.
  • 44. #SMX #15A @PatrickStox Canonical tags Were all those people who injected canonical tags with JS and systems like Google Tag Manager wasting their time? Let’s find out! I setup a test on a website that didn’t have a canonical set and have injected a canonical that points to another website. Is https://www.stoxseo.com/ indexed as https://patrickstox.com/? Search Google for info:stoxseo.com
  • 45. #SMX #15A @PatrickStox Canonical tags Stoxseo.com is being treated as patrickstox.com, so Google is respecting my canonical inserted with JavaScript even though they said at Google I/O 2018 that they don’t.
  • 46. #SMX #15A @PatrickStox Share these #SMXInsights on your social channels! #SMXInsights Does Google respect canonical tags injected with JavaScript? They said at Google I/O 2018 that they don’t, but my test is live and shows they do. Search Google for info:stoxseo.com cc: @johnmu
  • 48. #SMX #15A @PatrickStox Share these #SMXInsights on your social channels! #SMXInsights Lots of things supported by modern browsers aren’t supported by Chrome 41. Graceful degradation and polyfills are important for now, although Google hopes to update to the latest Chrome this year. https://caniuse.com/#compare=chrome+41 ,chrome+69
  • 49. #SMX #15A @PatrickStox Googlebot and WRS only speaks HTTP/1.x and FTP, with and without TLS. WRS and Googlebot doesn't support WebSocket protocol
  • 50. #SMX #15A @PatrickStox Use feature detection to identify supported APIs and capabilities of the WRS, and polyfills where applicable — just as you would for any other browser — as the capabilities of WRS may update at any time: • IndexedDB and WebSQL interfaces are disabled. • Interfaces defined by the Service Worker specification are disabled. • WebGL interface is disabled; 3D and VR content is not currently indexed. WRS disables some interfaces and capabilities
  • 51. #SMX #15A @PatrickStox WRS loads each URL, following server and client redirects, same as a regular browser. However, WRS does not retain state across page loads: • Local Storage and Session Storage data are cleared across page loads. • HTTP Cookies are cleared across page loads. Googlebot and WRS are stateless across page loads
  • 52. #SMX #15A @PatrickStox Any features that requires user consent are auto-declined by the Googlebot. For a full list of affected features, refer to the Permission Registry. For example, Camera API, Geolocation API, and Notifications API. WRS declines permission requests
  • 53. #SMX #15A @PatrickStox Googlebot is designed to be a good citizen of the web. Crawling is its main priority, while making sure it doesn't degrade the experience of users visiting the site. Googlebot and WRS continuously analyze and identify resources that don’t contribute to essential page content and may not fetch such resources. For example, reporting and error requests that don’t contribute to essential page content, and other similar types of requests are unused or unnecessary to extract essential page content. Googlebot and WRS prioritize essential page content
  • 54. #SMX #15A @PatrickStox Mostly crawls from West Coast US (Mountain View). According to Gary Illyes at SMX Advanced 2017 they don’t throttle speeds when checking mobile sites. They are very aggressive with caching everything (you may want to use file versioning). This can lead to some impossible states being indexed if parts of old files are cached. Other things to know about Googlebot and the WRS
  • 55. #SMX #15A @PatrickStox In fact, because of the caching and you know being a bot and all, they actually run things as fast as they can with a sped up clock. Check out this post from Tom Anthony http://www.tomanthony.co.uk/blog/googlebot-javascript-random/ Googlebot runs fast
  • 56. #SMX #15A @PatrickStox Because of this experiment from Max Prin, most people believe that Googlebot will only wait 5 seconds for a page to load. https://maxxeight.com/tests/js-timer/ 5 second rule
  • 58. #SMX #15A @PatrickStox Share these #SMXInsights on your social channels! #SMXInsights There is no fixed timeout of 5 seconds for Googlebot as is commonly believed for JS. Between aggressive caching and running things as fast as possible, there is no known or fixed limit.
  • 59. #SMX #15A @PatrickStox Share these #SMXInsights on your social channels! #SMXInsights Googlebot renders with a long viewport. Mobile screen size is 431 X 731 and Google resizes to 12,140 pixels high, while the desktop version is 768 X 1024 but Google only resizes to 9,307 pixels high. Credit to JR Oakes @jroakes https://codeseo.io/console-log-hacking-for- googlebot/
  • 61. #SMX #15A @PatrickStox Both of these are raw HTML, before JS has been processed and they’re unreliable. Cache can process the JS as it was but it’s being processed in your browser, making it deceptive. This isn’t what Google saw. View Source and Google’s Cache
  • 62. #SMX #15A @PatrickStox Viewing the DOM shows you the HTML after the JS has been processed. If you want to make sure Google sees it, load in the DOM by default without needing an action like click or scroll. Inspect or Inspect Element
  • 63. #SMX #15A @PatrickStox Search Google: site:domain.com “snippet of text from your page” If the second indexing hasn’t happened, this may not show a result. To check indexing
  • 64. #SMX #15A @PatrickStox Google Search Console / Fetch and Render - renders a page with Googlebot as either desktop or mobile and lists blocked / unreachable resources. It does not show the processed DOM or have a debug mode. Lets you submit rendered pages to Google search for indexing. This is stricter than the system normally used. Just because you submit to index after fetch and render doesn’t mean the WRS has processed the page for second indexing! Render a page as Googlebot
  • 65. #SMX #15A @PatrickStox Google Mobile Friendly Test - renders a page with smartphone Googlebot. It does have the processed DOM (source code) and a debug mode (see page loading issues and JavaScript Console). Render a page as Googlebot
  • 66. #SMX #15A @PatrickStox Share these #SMXInsights on your social channels! #SMXInsights Google’s Mobile Friendly Test https://search.google.com/test/mobile- friendly is currently the best way to see what Google sees for a client-side rendered JS website. It shows the processed DOM and has a JavaScript Console.
  • 67. #SMX #15A @PatrickStox Google Rich Results Test shows rendered DOM (desktop) Render a page as Googlebot
  • 68. #SMX #15A @PatrickStox Sometimes you may see another website that had the same basic HTML as your website indexed instead of your own. Check with info:domain/page as this will usually indicate the second indexing hasn’t happened yet. What about using the same raw HTML?
  • 69. #SMX #15A @PatrickStox LEARN MORE: UPCOMING @SMX EVENTS THANK YOU! SEE YOU AT THE NEXT #SMX