SMX Advanced 2018 SEO for Javascript Frameworks by Patrick Stox

#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
1 of 69

Recommended

Everything That Can Go Wrong Will Go Wrong - Tech SEO Boost 2017 - Patrick Stox by
Everything That Can Go Wrong Will Go Wrong - Tech SEO Boost 2017 - Patrick StoxEverything That Can Go Wrong Will Go Wrong - Tech SEO Boost 2017 - Patrick Stox
Everything That Can Go Wrong Will Go Wrong - Tech SEO Boost 2017 - Patrick Stoxpatrickstox
12.5K views37 slides
Pubcon Vegas 2017 You're Going To Screw Up International SEO - Patrick Stox by
Pubcon Vegas 2017 You're Going To Screw Up International SEO - Patrick StoxPubcon Vegas 2017 You're Going To Screw Up International SEO - Patrick Stox
Pubcon Vegas 2017 You're Going To Screw Up International SEO - Patrick Stoxpatrickstox
14.2K views43 slides
A Technical Look at Content - PUBCON SFIMA 2017 - Patrick Stox by
A Technical Look at Content - PUBCON SFIMA 2017 - Patrick StoxA Technical Look at Content - PUBCON SFIMA 2017 - Patrick Stox
A Technical Look at Content - PUBCON SFIMA 2017 - Patrick Stoxpatrickstox
20.3K views41 slides
Everyone Screws Up HTTPS by
Everyone Screws Up HTTPSEveryone Screws Up HTTPS
Everyone Screws Up HTTPSpatrickstox
29.7K views22 slides
Troubleshooting SEO for JS Frameworks - Patrick Stox - DTD 2018 by
Troubleshooting SEO for JS Frameworks - Patrick Stox - DTD 2018Troubleshooting SEO for JS Frameworks - Patrick Stox - DTD 2018
Troubleshooting SEO for JS Frameworks - Patrick Stox - DTD 2018patrickstox
16.6K views31 slides
Google's Top 3 Ranking Factors - Content, Links, and RankBrain - Raleigh SEO ... by
Google's Top 3 Ranking Factors - Content, Links, and RankBrain - Raleigh SEO ...Google's Top 3 Ranking Factors - Content, Links, and RankBrain - Raleigh SEO ...
Google's Top 3 Ranking Factors - Content, Links, and RankBrain - Raleigh SEO ...patrickstox
19.7K views29 slides

More Related Content

What's hot

Better Safe Than Sorry with HTTPS - SMX East 2016 - Patrick Stox by
Better Safe Than Sorry with HTTPS - SMX East 2016 - Patrick StoxBetter Safe Than Sorry with HTTPS - SMX East 2016 - Patrick Stox
Better Safe Than Sorry with HTTPS - SMX East 2016 - Patrick Stoxpatrickstox
19.5K views45 slides
SearchLove London 2016 | Dom Woodman | How to Get Insight From Your Logs by
SearchLove London 2016 | Dom Woodman | How to Get Insight From Your LogsSearchLove London 2016 | Dom Woodman | How to Get Insight From Your Logs
SearchLove London 2016 | Dom Woodman | How to Get Insight From Your LogsDistilled
4.9K views168 slides
What's Next for Page Experience - SMX Next 2021 - Patrick Stox by
What's Next for Page Experience - SMX Next 2021 - Patrick StoxWhat's Next for Page Experience - SMX Next 2021 - Patrick Stox
What's Next for Page Experience - SMX Next 2021 - Patrick StoxAhrefs
339 views50 slides
SMX Advanced 2018 Solving Complex SEO Problems by Patrick Stox by
SMX Advanced 2018 Solving Complex SEO Problems by Patrick StoxSMX Advanced 2018 Solving Complex SEO Problems by Patrick Stox
SMX Advanced 2018 Solving Complex SEO Problems by Patrick Stoxpatrickstox
12K views40 slides
NLP Sitemap SMX 2016 Patrick Stox Latest In Advanced Technical SEO by
NLP Sitemap SMX 2016 Patrick Stox Latest In Advanced Technical SEONLP Sitemap SMX 2016 Patrick Stox Latest In Advanced Technical SEO
NLP Sitemap SMX 2016 Patrick Stox Latest In Advanced Technical SEOpatrickstox
30.8K views36 slides
AMP for Enterprises - SMX West - Patrick Stox by
AMP for Enterprises - SMX West - Patrick StoxAMP for Enterprises - SMX West - Patrick Stox
AMP for Enterprises - SMX West - Patrick Stoxpatrickstox
11.9K views45 slides

What's hot(20)

Better Safe Than Sorry with HTTPS - SMX East 2016 - Patrick Stox by patrickstox
Better Safe Than Sorry with HTTPS - SMX East 2016 - Patrick StoxBetter Safe Than Sorry with HTTPS - SMX East 2016 - Patrick Stox
Better Safe Than Sorry with HTTPS - SMX East 2016 - Patrick Stox
patrickstox19.5K views
SearchLove London 2016 | Dom Woodman | How to Get Insight From Your Logs by Distilled
SearchLove London 2016 | Dom Woodman | How to Get Insight From Your LogsSearchLove London 2016 | Dom Woodman | How to Get Insight From Your Logs
SearchLove London 2016 | Dom Woodman | How to Get Insight From Your Logs
Distilled4.9K views
What's Next for Page Experience - SMX Next 2021 - Patrick Stox by Ahrefs
What's Next for Page Experience - SMX Next 2021 - Patrick StoxWhat's Next for Page Experience - SMX Next 2021 - Patrick Stox
What's Next for Page Experience - SMX Next 2021 - Patrick Stox
Ahrefs339 views
SMX Advanced 2018 Solving Complex SEO Problems by Patrick Stox by patrickstox
SMX Advanced 2018 Solving Complex SEO Problems by Patrick StoxSMX Advanced 2018 Solving Complex SEO Problems by Patrick Stox
SMX Advanced 2018 Solving Complex SEO Problems by Patrick Stox
patrickstox12K views
NLP Sitemap SMX 2016 Patrick Stox Latest In Advanced Technical SEO by patrickstox
NLP Sitemap SMX 2016 Patrick Stox Latest In Advanced Technical SEONLP Sitemap SMX 2016 Patrick Stox Latest In Advanced Technical SEO
NLP Sitemap SMX 2016 Patrick Stox Latest In Advanced Technical SEO
patrickstox30.8K views
AMP for Enterprises - SMX West - Patrick Stox by patrickstox
AMP for Enterprises - SMX West - Patrick StoxAMP for Enterprises - SMX West - Patrick Stox
AMP for Enterprises - SMX West - Patrick Stox
patrickstox11.9K views
A Crash Course in Technical SEO from Patrick Stox - Beer & SEO Meetup May 2019 by patrickstox
A Crash Course in Technical SEO from Patrick Stox - Beer & SEO Meetup May 2019A Crash Course in Technical SEO from Patrick Stox - Beer & SEO Meetup May 2019
A Crash Course in Technical SEO from Patrick Stox - Beer & SEO Meetup May 2019
patrickstox1K views
Page Experience Update TMC June 2021 Patrick Stox by patrickstox
Page Experience Update TMC June 2021 Patrick StoxPage Experience Update TMC June 2021 Patrick Stox
Page Experience Update TMC June 2021 Patrick Stox
patrickstox229 views
Challenges of building a search engine like web rendering service by Giacomo Zecchini
Challenges of building a search engine like web rendering serviceChallenges of building a search engine like web rendering service
Challenges of building a search engine like web rendering service
Giacomo Zecchini3.5K views
Migration Best Practices - SMX West 2019 by Bastian Grimm
Migration Best Practices - SMX West 2019Migration Best Practices - SMX West 2019
Migration Best Practices - SMX West 2019
Bastian Grimm3.3K views
JavaScript SEO Ungagged 2019 Patrick Stox by patrickstox
JavaScript SEO Ungagged 2019 Patrick StoxJavaScript SEO Ungagged 2019 Patrick Stox
JavaScript SEO Ungagged 2019 Patrick Stox
patrickstox509 views
Browser Changes That Will Impact SEO From 2019-2020 by Tom Anthony
Browser Changes That Will Impact SEO From 2019-2020Browser Changes That Will Impact SEO From 2019-2020
Browser Changes That Will Impact SEO From 2019-2020
Tom Anthony10.8K views
Structured Data & Schema.org - SMX Milan 2014 by Bastian Grimm
Structured Data & Schema.org - SMX Milan 2014Structured Data & Schema.org - SMX Milan 2014
Structured Data & Schema.org - SMX Milan 2014
Bastian Grimm6.2K views
How to build simple web apps to automate your SEO tasks - BrightonSEO Spring ... by Charly Wargnier
How to build simple web apps to automate your SEO tasks - BrightonSEO Spring ...How to build simple web apps to automate your SEO tasks - BrightonSEO Spring ...
How to build simple web apps to automate your SEO tasks - BrightonSEO Spring ...
Charly Wargnier2.2K views
Troubleshooting Technical SEO Problems - Patrick Stox - Raleigh SEO Meetup by patrickstox
Troubleshooting Technical SEO Problems - Patrick Stox - Raleigh SEO MeetupTroubleshooting Technical SEO Problems - Patrick Stox - Raleigh SEO Meetup
Troubleshooting Technical SEO Problems - Patrick Stox - Raleigh SEO Meetup
patrickstox12.5K views
What's in my SEO Toolbox: Linkbuilding Edition - SMX Milan 2014 by Bastian Grimm
What's in my SEO Toolbox: Linkbuilding Edition - SMX Milan 2014What's in my SEO Toolbox: Linkbuilding Edition - SMX Milan 2014
What's in my SEO Toolbox: Linkbuilding Edition - SMX Milan 2014
Bastian Grimm4.2K views
OK Google, Whats next? - OMT Wiesbaden 2018 by Bastian Grimm
OK Google, Whats next? - OMT Wiesbaden 2018OK Google, Whats next? - OMT Wiesbaden 2018
OK Google, Whats next? - OMT Wiesbaden 2018
Bastian Grimm1.2K views
SEO Tools of the Trade - Barcelona Affiliate Conference 2014 by Bastian Grimm
SEO Tools of the Trade - Barcelona Affiliate Conference 2014SEO Tools of the Trade - Barcelona Affiliate Conference 2014
SEO Tools of the Trade - Barcelona Affiliate Conference 2014
Bastian Grimm8.9K views
Data Visualization for SEO by Ahrefs
Data Visualization for SEOData Visualization for SEO
Data Visualization for SEO
Ahrefs1.7K views
Rendering SEO (explained by Google's Martin Splitt) by Anton Shulke
Rendering SEO (explained by Google's Martin Splitt)Rendering SEO (explained by Google's Martin Splitt)
Rendering SEO (explained by Google's Martin Splitt)
Anton Shulke649 views

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

How Search Works by
How Search WorksHow Search Works
How Search WorksAhrefs
4.3K views95 slides
Solving Complex JavaScript Issues and Leveraging Semantic HTML5 by
Solving Complex JavaScript Issues and Leveraging Semantic HTML5Solving Complex JavaScript Issues and Leveraging Semantic HTML5
Solving Complex JavaScript Issues and Leveraging Semantic HTML5Hamlet Batista
1.4K views56 slides
Dynamic Rendering - is this really an SEO silver bullet? SMX WEST by
Dynamic Rendering - is this really an SEO silver bullet? SMX WESTDynamic Rendering - is this really an SEO silver bullet? SMX WEST
Dynamic Rendering - is this really an SEO silver bullet? SMX WESTOnely
10.8K views85 slides
Modern SEO Players Guide by
Modern SEO Players GuideModern SEO Players Guide
Modern SEO Players GuideMichael King
28K views171 slides
SMX_DevTools_Monaco_2.pdf by
SMX_DevTools_Monaco_2.pdfSMX_DevTools_Monaco_2.pdf
SMX_DevTools_Monaco_2.pdfSara Moccand-Sayegh
173 views90 slides
Welcome to a new reality - DeepCrawl Webinar 2018 by
Welcome to a new reality - DeepCrawl Webinar 2018Welcome to a new reality - DeepCrawl Webinar 2018
Welcome to a new reality - DeepCrawl Webinar 2018Bastian Grimm
23.5K views54 slides

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

How Search Works by Ahrefs
How Search WorksHow Search Works
How Search Works
Ahrefs4.3K views
Solving Complex JavaScript Issues and Leveraging Semantic HTML5 by Hamlet Batista
Solving Complex JavaScript Issues and Leveraging Semantic HTML5Solving Complex JavaScript Issues and Leveraging Semantic HTML5
Solving Complex JavaScript Issues and Leveraging Semantic HTML5
Hamlet Batista1.4K views
Dynamic Rendering - is this really an SEO silver bullet? SMX WEST by Onely
Dynamic Rendering - is this really an SEO silver bullet? SMX WESTDynamic Rendering - is this really an SEO silver bullet? SMX WEST
Dynamic Rendering - is this really an SEO silver bullet? SMX WEST
Onely10.8K views
Modern SEO Players Guide by Michael King
Modern SEO Players GuideModern SEO Players Guide
Modern SEO Players Guide
Michael King28K views
Welcome to a new reality - DeepCrawl Webinar 2018 by Bastian Grimm
Welcome to a new reality - DeepCrawl Webinar 2018Welcome to a new reality - DeepCrawl Webinar 2018
Welcome to a new reality - DeepCrawl Webinar 2018
Bastian Grimm23.5K views
Technical SEO: Crawl Space Management - SEOZone Istanbul 2014 by Bastian Grimm
Technical SEO: Crawl Space Management - SEOZone Istanbul 2014Technical SEO: Crawl Space Management - SEOZone Istanbul 2014
Technical SEO: Crawl Space Management - SEOZone Istanbul 2014
Bastian Grimm10.1K views
TechSEO Boost 2017: SEO Best Practices for JavaScript T-Based Websites by Catalyst
TechSEO Boost 2017: SEO Best Practices for JavaScript T-Based WebsitesTechSEO Boost 2017: SEO Best Practices for JavaScript T-Based Websites
TechSEO Boost 2017: SEO Best Practices for JavaScript T-Based Websites
Catalyst6.9K views
Max Prin - TechSEO Boost 2017 - SEO Best Practices For JavaScript-Based Websites by Max Prin
Max Prin - TechSEO Boost 2017 - SEO Best Practices For JavaScript-Based WebsitesMax Prin - TechSEO Boost 2017 - SEO Best Practices For JavaScript-Based Websites
Max Prin - TechSEO Boost 2017 - SEO Best Practices For JavaScript-Based Websites
Max Prin875 views
SearchLove London 2017 | Emily Grossman | From Website to Web-App: Fantastic ... by Distilled
SearchLove London 2017 | Emily Grossman | From Website to Web-App: Fantastic ...SearchLove London 2017 | Emily Grossman | From Website to Web-App: Fantastic ...
SearchLove London 2017 | Emily Grossman | From Website to Web-App: Fantastic ...
Distilled6.6K views
The latest in site speed: advanced #webperf 2018 by Anton Shulke
The latest in site speed: advanced #webperf 2018The latest in site speed: advanced #webperf 2018
The latest in site speed: advanced #webperf 2018
Anton Shulke538 views
Migration Best Practices - Search Y 2019, Paris by Bastian Grimm
Migration Best Practices - Search Y 2019, ParisMigration Best Practices - Search Y 2019, Paris
Migration Best Practices - Search Y 2019, Paris
Bastian Grimm3.6K views
From Website to Web App - Indexing, Optimizing, and Auditing Experiences for ... by MobileMoxie
From Website to Web App - Indexing, Optimizing, and Auditing Experiences for ...From Website to Web App - Indexing, Optimizing, and Auditing Experiences for ...
From Website to Web App - Indexing, Optimizing, and Auditing Experiences for ...
MobileMoxie1.3K views
L’importance du crawl du JavaScript : pourquoi, comment et pour quels bénéfic... by SEO Camp Association
L’importance du crawl du JavaScript : pourquoi, comment et pour quels bénéfic...L’importance du crawl du JavaScript : pourquoi, comment et pour quels bénéfic...
L’importance du crawl du JavaScript : pourquoi, comment et pour quels bénéfic...
JavaScript Tips & Tricks 2018 - SMX East by Onely
JavaScript Tips & Tricks 2018 - SMX EastJavaScript Tips & Tricks 2018 - SMX East
JavaScript Tips & Tricks 2018 - SMX East
Onely3.2K views
From Web Site to Web App: Fantastic Optimisations and Where To Find Them by MobileMoxie
From Web Site to Web App: Fantastic Optimisations and Where To Find ThemFrom Web Site to Web App: Fantastic Optimisations and Where To Find Them
From Web Site to Web App: Fantastic Optimisations and Where To Find Them
MobileMoxie593 views
International SEO: The Weird Technical Parts - Pubcon Vegas 2019 Patrick Stox by patrickstox
International SEO: The Weird Technical Parts - Pubcon Vegas 2019 Patrick StoxInternational SEO: The Weird Technical Parts - Pubcon Vegas 2019 Patrick Stox
International SEO: The Weird Technical Parts - Pubcon Vegas 2019 Patrick Stox
patrickstox7.7K views

More from patrickstox

A crash course into SEO and what moves the needle with scalable processes by
A crash course into SEO and what moves the needle with scalable processesA crash course into SEO and what moves the needle with scalable processes
A crash course into SEO and what moves the needle with scalable processespatrickstox
228 views123 slides
Where to focus your SEO efforts to have the most impact Digital Summit Atlant... by
Where to focus your SEO efforts to have the most impact Digital Summit Atlant...Where to focus your SEO efforts to have the most impact Digital Summit Atlant...
Where to focus your SEO efforts to have the most impact Digital Summit Atlant...patrickstox
698 views124 slides
Raleigh seo-most-valuable-seo-presentation-patrick-stox by
Raleigh seo-most-valuable-seo-presentation-patrick-stoxRaleigh seo-most-valuable-seo-presentation-patrick-stox
Raleigh seo-most-valuable-seo-presentation-patrick-stoxpatrickstox
286 views124 slides
Nofollow UGC Sponsored SEO From Home Patrick Stox Ahrefs by
Nofollow UGC Sponsored SEO From Home Patrick Stox AhrefsNofollow UGC Sponsored SEO From Home Patrick Stox Ahrefs
Nofollow UGC Sponsored SEO From Home Patrick Stox Ahrefspatrickstox
217 views73 slides
Nofollow UGC Sponsored SMX West 2020 Patrick Stox by
Nofollow UGC Sponsored SMX West 2020 Patrick StoxNofollow UGC Sponsored SMX West 2020 Patrick Stox
Nofollow UGC Sponsored SMX West 2020 Patrick Stoxpatrickstox
152 views71 slides
How to find other affiliates most successful content patrick stox by
How to find other affiliates most successful content patrick stoxHow to find other affiliates most successful content patrick stox
How to find other affiliates most successful content patrick stoxpatrickstox
142 views63 slides

More from patrickstox(12)

A crash course into SEO and what moves the needle with scalable processes by patrickstox
A crash course into SEO and what moves the needle with scalable processesA crash course into SEO and what moves the needle with scalable processes
A crash course into SEO and what moves the needle with scalable processes
patrickstox228 views
Where to focus your SEO efforts to have the most impact Digital Summit Atlant... by patrickstox
Where to focus your SEO efforts to have the most impact Digital Summit Atlant...Where to focus your SEO efforts to have the most impact Digital Summit Atlant...
Where to focus your SEO efforts to have the most impact Digital Summit Atlant...
patrickstox698 views
Raleigh seo-most-valuable-seo-presentation-patrick-stox by patrickstox
Raleigh seo-most-valuable-seo-presentation-patrick-stoxRaleigh seo-most-valuable-seo-presentation-patrick-stox
Raleigh seo-most-valuable-seo-presentation-patrick-stox
patrickstox286 views
Nofollow UGC Sponsored SEO From Home Patrick Stox Ahrefs by patrickstox
Nofollow UGC Sponsored SEO From Home Patrick Stox AhrefsNofollow UGC Sponsored SEO From Home Patrick Stox Ahrefs
Nofollow UGC Sponsored SEO From Home Patrick Stox Ahrefs
patrickstox217 views
Nofollow UGC Sponsored SMX West 2020 Patrick Stox by patrickstox
Nofollow UGC Sponsored SMX West 2020 Patrick StoxNofollow UGC Sponsored SMX West 2020 Patrick Stox
Nofollow UGC Sponsored SMX West 2020 Patrick Stox
patrickstox152 views
How to find other affiliates most successful content patrick stox by patrickstox
How to find other affiliates most successful content patrick stoxHow to find other affiliates most successful content patrick stox
How to find other affiliates most successful content patrick stox
patrickstox142 views
Data Visualization for SEO by patrickstox
Data Visualization for SEOData Visualization for SEO
Data Visualization for SEO
patrickstox216 views
Things Google Tries To Correct For You - SMX Advanced 2019 Insights Sessions ... by patrickstox
Things Google Tries To Correct For You - SMX Advanced 2019 Insights Sessions ...Things Google Tries To Correct For You - SMX Advanced 2019 Insights Sessions ...
Things Google Tries To Correct For You - SMX Advanced 2019 Insights Sessions ...
patrickstox689 views
Website Migrations at SMX Munich 2019 - Patrick Stox by patrickstox
Website Migrations at SMX Munich 2019 - Patrick StoxWebsite Migrations at SMX Munich 2019 - Patrick Stox
Website Migrations at SMX Munich 2019 - Patrick Stox
patrickstox305 views
Mobile First Indexing - SMX Advanced 2017 - Patrick Stox by patrickstox
Mobile First Indexing - SMX Advanced 2017 - Patrick StoxMobile First Indexing - SMX Advanced 2017 - Patrick Stox
Mobile First Indexing - SMX Advanced 2017 - Patrick Stox
patrickstox12K views
Google Tag Manager Can Do What by patrickstox
Google Tag Manager Can Do WhatGoogle Tag Manager Can Do What
Google Tag Manager Can Do What
patrickstox21K views
Link Reclamation Strategies by patrickstox
Link Reclamation Strategies Link Reclamation Strategies
Link Reclamation Strategies
patrickstox29.6K views

Recently uploaded

16.2 Distribution through Intermediaries.pdf by
16.2 Distribution through Intermediaries.pdf16.2 Distribution through Intermediaries.pdf
16.2 Distribution through Intermediaries.pdfRitikSharma251462
6 views76 slides
content strategy _ seconed oponion _medical industry by
content strategy _ seconed oponion _medical industrycontent strategy _ seconed oponion _medical industry
content strategy _ seconed oponion _medical industryjonathanhany42
13 views29 slides
Bridging the Gap: How SEO and CRO Work Together to Maximize User Satisfaction... by
Bridging the Gap: How SEO and CRO Work Together to Maximize User Satisfaction...Bridging the Gap: How SEO and CRO Work Together to Maximize User Satisfaction...
Bridging the Gap: How SEO and CRO Work Together to Maximize User Satisfaction...Rio Ichikawa
144 views125 slides
London HUG - Do More With SMS For HubSpot by
London HUG - Do More With SMS For HubSpot London HUG - Do More With SMS For HubSpot
London HUG - Do More With SMS For HubSpot Whitehat Inbound Marketing Agency
6 views23 slides
Marketing Stories 2023 - Year in Review.pdf by
Marketing Stories 2023 - Year in Review.pdfMarketing Stories 2023 - Year in Review.pdf
Marketing Stories 2023 - Year in Review.pdfDigital Uncovered
63 views22 slides
Performance Max Pros and Cons by
Performance Max Pros and ConsPerformance Max Pros and Cons
Performance Max Pros and Consakisselev
7 views5 slides

Recently uploaded(20)

content strategy _ seconed oponion _medical industry by jonathanhany42
content strategy _ seconed oponion _medical industrycontent strategy _ seconed oponion _medical industry
content strategy _ seconed oponion _medical industry
jonathanhany4213 views
Bridging the Gap: How SEO and CRO Work Together to Maximize User Satisfaction... by Rio Ichikawa
Bridging the Gap: How SEO and CRO Work Together to Maximize User Satisfaction...Bridging the Gap: How SEO and CRO Work Together to Maximize User Satisfaction...
Bridging the Gap: How SEO and CRO Work Together to Maximize User Satisfaction...
Rio Ichikawa144 views
Marketing Stories 2023 - Year in Review.pdf by Digital Uncovered
Marketing Stories 2023 - Year in Review.pdfMarketing Stories 2023 - Year in Review.pdf
Marketing Stories 2023 - Year in Review.pdf
Performance Max Pros and Cons by akisselev
Performance Max Pros and ConsPerformance Max Pros and Cons
Performance Max Pros and Cons
akisselev7 views
First 30 days of Your CRO Program by VWO
First 30 days of Your CRO ProgramFirst 30 days of Your CRO Program
First 30 days of Your CRO Program
VWO58 views
Deltaplan - SEO Search by Roy Huiskes
Deltaplan - SEO SearchDeltaplan - SEO Search
Deltaplan - SEO Search
Roy Huiskes52 views
The evolution of internet.pptx by ssuser520a351
The evolution of internet.pptxThe evolution of internet.pptx
The evolution of internet.pptx
ssuser520a3516 views
GDPR Compliant Growth Hacks (TheBootstrappedWay.com) by Daniel Pirciu
GDPR Compliant Growth Hacks (TheBootstrappedWay.com)GDPR Compliant Growth Hacks (TheBootstrappedWay.com)
GDPR Compliant Growth Hacks (TheBootstrappedWay.com)
Daniel Pirciu5 views
Growth strategies for SaaS MRR $10,000 (by TheBootstrappedWay.com) by Daniel Pirciu
Growth strategies for SaaS MRR $10,000 (by TheBootstrappedWay.com)Growth strategies for SaaS MRR $10,000 (by TheBootstrappedWay.com)
Growth strategies for SaaS MRR $10,000 (by TheBootstrappedWay.com)
Daniel Pirciu9 views
How to create and present logo. pdf by Gaurav Singh
How to create and present logo. pdfHow to create and present logo. pdf
How to create and present logo. pdf
Gaurav Singh22 views
The Canvas of Creative Mastery Newsletter_November 2023 by AmirYakdi
The Canvas of Creative Mastery Newsletter_November 2023The Canvas of Creative Mastery Newsletter_November 2023
The Canvas of Creative Mastery Newsletter_November 2023
AmirYakdi107 views
November 2023 - Partners meeting group by Vbout.com
November 2023 - Partners meeting groupNovember 2023 - Partners meeting group
November 2023 - Partners meeting group
Vbout.com31 views

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