SlideShare ist ein Scribd-Unternehmen logo
1 von 37
@patrickstox
@patrickstox
• Product Advisor, Technical SEO, &
Brand Ambassador at Ahrefs
• I wrote for Search Engine Land, now Ahrefs blog
• I speak at some conferences like SMX, Pubcon, TechSEO Boost
• Organizer for the Raleigh SEO Meetup (most successful in US) and
the Beer & SEO Meetup
• We also run a conference, the Raleigh SEO Conference
• Judge: 2017/18/19 US Search Awards, 2017/18/19 UK Search
Awards, 2018/19 Interactive Marketing Awards
• Founder Technical SEO Slack Group
• Moderator /r/TechSEO on Reddit
• Finalist for SEO Speaker of the Year and SEO Contributor of the Year
- 2018 Search Engine Land Awards.
• On a lot of top SEO lists like 140 of Today's Top SEO Experts to
Follow.
• Part of SERoundtable’s Honor an SEO series
Who is Patrick Stox?
@patrickstox
Why I’m Here:
@patrickstox
How About This One?
@patrickstox
You Don’t Need To Learn JavaScript
You just need to know how some of the systems work and how to
troubleshoot it.
@patrickstox
Why JS?
• Clean structure
• Strong community
• Reusable components
• Easy debugging
• Interactive experiences
• Reduced code
• Clean structure
• Map app state to DOM
@patrickstox
Headless / Decoupled
@patrickstox
Monolithic vs Headless / Decoupled
https://medium.com/@bretcameron/building-my-first-headless-cms-
what-i-wish-i-knew-at-the-start-1f3ef3a00bb8
@patrickstox
Tree Shaking (Before)
Loads everything potentially needed
https://stackoverflow.com/questions/45884414/what-is-tree-shaking-
and-why-would-i-need-it
@patrickstox
Tree Shaking (After)
Loads only what is needed
Eliminates unused code
Smaller Pages
https://stackoverflow.com/questions/45884414/what-is-tree-shaking-
and-why-would-i-need-it
@patrickstox
Code Splitting
https://www.freecodecamp.org/news/code-splitting-with-higher-order-
components-4ac8f094b059/
@patrickstox
Why Code Splitting
Interactivity
JavaScript competes for the main thread. While a task is running a
page can’t respond to a user input, this is the delay felt by users.
Source: https://web.dev/long-tasks-devtools
@patrickstox
Googlebot Before
Chrome 41
Polyfills
ES5
https://webmasters.googleblog.com/2019/05/the-new-evergreen-googlebot.html
https://webmasters.googleblog.com/2019/08/evergreen-googlebot-in-testing-
tools.html
Googlebot Now
Evergreen
All newer features should work
Tools are updated also
@patrickstox
Content Initially Indexed is HTML Snapshot
Source Google: https://developers.google.com/search/docs/guides/javascript-seo-basics
@patrickstox
Render Options
Source Google: https://developers.google.com/web/updates/2019/02/rendering-
on-the-web
@patrickstox
Don’t CSR
Source Google: https://developers.google.com/web/updates/2019/02/rendering-
on-the-web
@patrickstox
Google Recommends Dynamic Rendering
Dynamic rendering means switching between client-side rendered and pre-
rendered content for specific user agents.
Options: Puppeteer, Rendertron, prerender.io
Source Google: https://developers.google.com/search/docs/guides/dynamic-
rendering
@patrickstox
Google’s View of JS Devs
@patrickstox
Don’t Abuse It, Cloaking
Using dynamic rendering to serve completely different
content to users and crawlers can be considered cloaking
Cloaking refers to the practice of presenting different
content or URLs to human users and search engines.
Cloaking is considered a violation of
Google’s Webmaster Guidelines because it provides our
users with different results than they expected.
https://support.google.com/webmasters/answer/66355?hl
=en
@patrickstox
Other Search Engines
Bing has the capability to render JS, but the scale is unknown.
https://blogs.bing.com/webmaster/october-2019/The-new-evergreen-Bingbot-
simplifying-SEO-by-leveraging-Microsoft-Edge/ They mostly use this for top
pages and web spam.
Yandex, Baidu = limited
Other search engines, probably not.
@patrickstox
Scaling Rendering Is Expensive
Rendering basically needs to behave like a browser, that’s both complicated and
expensive. Crawl costs go up by about 20x when you start rendering.
Gets interesting at scale, trillions of pages in the index. Mainly because of 1)
fetching the content and then 2) running the javascript, its a lot of new logic
Javascript – good news is they’re running Chrome so the environment is good.
Bad thing is theres a lot of js and they need to run a lot of it. Google is
constrained with CPU globally
https://www.jackiecchu.com/seo/google-webmaster-conference-mountain-view-
2019/
@patrickstox
Ahrefs Crawling
Every day
7 Billion Pages
Render
80 Million JS Pages
This requires
600 Servers ***Site Audit also supports JS
@patrickstox
Testing
Don’t use Google’s cache. That’s an HTML snapshot processed by your browser.
Don’t use view-source, that’s the HTML.
Do use Mobile Friendly Test https://search.google.com/test/mobile-friendly
Do use URL Inspection Tool https://search.google.com/search-console
-Show loaded/blocked resources, console output and exceptions, rendered DOM
Do use Rich Results (desktop+mobile): https://search.google.com/test/rich-
results
Google search: site:whatever.com "part of your text“ to check if text is seen
@patrickstox
You May See Another Page/Domain Indexed
If you’re using an app shell model pages may be detected as duplicate content
and put into the same cluster of pages with the wrong one shown.
Basically the html looked the same as something else so they figured the pages
were duplicate and only wanted 1 record in their index. This should resolve once
it’s been through the renderer.
@patrickstox
Need To Know About Googlebot
Declines user permission requests
Stateless, doesn't navigate
• Local Storage and Session Storage data are cleared across page loads.
• HTTP Cookies are cleared across page loads.
Use feature detection to identify supported APIs and capabilities
Make sure your web components are search-friendly:
• To encapsulate and hide implementation details, use shadow DOM.
• Put your content into light DOM whenever possible.
https://developers.google.com/search/docs/guides/fix-search-javascript
@patrickstox
Need To Know About Googlebot
Will hit APIs if it’s allowed, potentially a lot
They need to access resources (like JavaScript), don’t block them
Between the initial snapshot and the rendered version they will choose the most
restrictive statements (nofollow vs follow, noindex vs index, etc)
Some pages take longer to be processed than others:
https://webmasters.googleblog.com/2017/01/what-crawl-budget-means-for-
googlebot.html
@patrickstox
Need To Know About Googlebot
Internal links may not be picked up and added to crawl before the render
happens
Mobile First: https://webmasters.googleblog.com/2018/03/rolling-out-mobile-first-
indexing.html
@patrickstox
Need To Know About Googlebot
Mostly crawls from West Coast US (Mountain View). Some crawling
internationally
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.
They download pages and download resources, but all of this is stored and run
as fast as possible as “rendering”.
@patrickstox
No Fixed Timeout
@patrickstox
Need To Know About Googlebot
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/
@patrickstox
Best Practices
Don't use hashes # for routing
Load content by default without needing an action like click, mouseover, scroll
Make sure links are links: <a href=“/good-link”>Will be crawled</a>
• No
@patrickstox
Best Practice: Clean URLs
Change URLs for different content: History API and HTML5 pushstate()
Use your router:
None of this: ?Topics%5B0%5D%5B0%5D=cat.topic%3Ainfrastructure
A JavaScript router is what allows state changes and you can use it to have
clean URLs.
@patrickstox
Best Practice: Use a 404 When Possible
JS can’t throw a 404, but you have options:
JS redirect or route to 404 page on a server with an actual 404 response.
Not as great: You can add a noindex to any error pages along with a message
like “404 Page Not Found”. Will be treated as a soft-404 even with status code
200 shown.
Lots of analytics may fire and lots of SEO tools + other tools don’t look for soft-
404s, so not having this status code when looking at data causes issues.
@patrickstox
As an SEO
Almost any setup is going to have a version of meta tag module or Helmet or
something similar.
Think of these as your “SEO plugin”. They let you set the titles, descriptions,
canonicals, etc.
@patrickstox
Resources
SEO Mythbusting Series + JS SEO Series
https://www.youtube.com/channel/UCWf2ZlNsCGDS89VBF_awNvA
JS SEO Basics: https://developers.google.com/search/docs/guides/javascript-
seo-basics
Dynamic Rendering: https://developers.google.com/search/docs/guides/dynamic-
rendering
Mobile Friendly Test: https://search.google.com/test/mobile-friendly
Google Search Console: https://search.google.com/search-console
JavaScript Working Group: https://groups.google.com/forum/#!forum/js-sites-wg
@patrickstox
Bonus
Let’s talk about Service Workers, especially Edge Workers / Serverless
Functions / Service Workers at the Edge / Cloudflare Workers
@patrickstox

Weitere ähnliche Inhalte

Was ist angesagt?

Website Migrations at SMX Munich 2019 - Patrick Stox
Website Migrations at SMX Munich 2019 - Patrick StoxWebsite Migrations at SMX Munich 2019 - Patrick Stox
Website Migrations at SMX Munich 2019 - Patrick Stoxpatrickstox
 
Nofollow UGC Sponsored SEOFromHome Patrick Stox Ahrefs
Nofollow UGC Sponsored SEOFromHome Patrick Stox AhrefsNofollow UGC Sponsored SEOFromHome Patrick Stox Ahrefs
Nofollow UGC Sponsored SEOFromHome Patrick Stox AhrefsAhrefs
 
Page Experience Update TMC June 2021 Patrick Stox
Page Experience Update TMC June 2021 Patrick StoxPage Experience Update TMC June 2021 Patrick Stox
Page Experience Update TMC June 2021 Patrick Stoxpatrickstox
 
A Technical Look at Content - PUBCON SFIMA 2017 - Patrick Stox
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
 
Data Visualization for SEO
Data Visualization for SEOData Visualization for SEO
Data Visualization for SEOAhrefs
 
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 ...
Google's Top 3 Ranking Factors - Content, Links, and RankBrain - Raleigh SEO ...patrickstox
 
Google's Search Signals For Page Experience - SMX Advanced 2021 Patrick Stox
Google's Search Signals For Page Experience - SMX Advanced 2021 Patrick StoxGoogle's Search Signals For Page Experience - SMX Advanced 2021 Patrick Stox
Google's Search Signals For Page Experience - SMX Advanced 2021 Patrick StoxAhrefs
 
SMX Advanced 2018 Solving Complex SEO Problems by Patrick Stox
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
 
Nofollow, UGC, and Sponsored Attributes
Nofollow, UGC, and Sponsored AttributesNofollow, UGC, and Sponsored Attributes
Nofollow, UGC, and Sponsored AttributesAhrefs
 
Enterprise SEO Chaos - SMX Advanced 2016
Enterprise SEO Chaos - SMX Advanced 2016Enterprise SEO Chaos - SMX Advanced 2016
Enterprise SEO Chaos - SMX Advanced 2016patrickstox
 
{PubCon Vegas 2019} The Business Value of Tech SEO
{PubCon Vegas 2019} The Business Value of Tech SEO {PubCon Vegas 2019} The Business Value of Tech SEO
{PubCon Vegas 2019} The Business Value of Tech SEO Jennifer Hoffman
 
SMX Advanced 2018 SEO for Javascript Frameworks by Patrick Stox
SMX Advanced 2018 SEO for Javascript Frameworks by Patrick StoxSMX Advanced 2018 SEO for Javascript Frameworks by Patrick Stox
SMX Advanced 2018 SEO for Javascript Frameworks by Patrick Stoxpatrickstox
 
Everything 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 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
 
Pubcon Vegas 2017 You're Going To Screw Up International SEO - Patrick Stox
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
 
NLP Sitemap SMX 2016 Patrick Stox Latest In Advanced Technical SEO
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
 
Raleigh SEO Meetup April 2018 - Dan Hinckley
Raleigh SEO Meetup April 2018 - Dan HinckleyRaleigh SEO Meetup April 2018 - Dan Hinckley
Raleigh SEO Meetup April 2018 - Dan HinckleyDanny Hinckley
 
Troubleshooting Technical SEO Problems - Patrick Stox - Raleigh SEO Meetup
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 Meetuppatrickstox
 
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 ...
How to build simple web apps to automate your SEO tasks - BrightonSEO Spring ...Charly Wargnier
 

Was ist angesagt? (18)

Website Migrations at SMX Munich 2019 - Patrick Stox
Website Migrations at SMX Munich 2019 - Patrick StoxWebsite Migrations at SMX Munich 2019 - Patrick Stox
Website Migrations at SMX Munich 2019 - Patrick Stox
 
Nofollow UGC Sponsored SEOFromHome Patrick Stox Ahrefs
Nofollow UGC Sponsored SEOFromHome Patrick Stox AhrefsNofollow UGC Sponsored SEOFromHome Patrick Stox Ahrefs
Nofollow UGC Sponsored SEOFromHome Patrick Stox Ahrefs
 
Page Experience Update TMC June 2021 Patrick Stox
Page Experience Update TMC June 2021 Patrick StoxPage Experience Update TMC June 2021 Patrick Stox
Page Experience Update TMC June 2021 Patrick Stox
 
A Technical Look at Content - PUBCON SFIMA 2017 - Patrick Stox
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 Stox
 
Data Visualization for SEO
Data Visualization for SEOData Visualization for SEO
Data Visualization for 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 ...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 Search Signals For Page Experience - SMX Advanced 2021 Patrick Stox
Google's Search Signals For Page Experience - SMX Advanced 2021 Patrick StoxGoogle's Search Signals For Page Experience - SMX Advanced 2021 Patrick Stox
Google's Search Signals For Page Experience - SMX Advanced 2021 Patrick Stox
 
SMX Advanced 2018 Solving Complex SEO Problems by Patrick Stox
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
 
Nofollow, UGC, and Sponsored Attributes
Nofollow, UGC, and Sponsored AttributesNofollow, UGC, and Sponsored Attributes
Nofollow, UGC, and Sponsored Attributes
 
Enterprise SEO Chaos - SMX Advanced 2016
Enterprise SEO Chaos - SMX Advanced 2016Enterprise SEO Chaos - SMX Advanced 2016
Enterprise SEO Chaos - SMX Advanced 2016
 
{PubCon Vegas 2019} The Business Value of Tech SEO
{PubCon Vegas 2019} The Business Value of Tech SEO {PubCon Vegas 2019} The Business Value of Tech SEO
{PubCon Vegas 2019} The Business Value of Tech SEO
 
SMX Advanced 2018 SEO for Javascript Frameworks by Patrick Stox
SMX Advanced 2018 SEO for Javascript Frameworks by Patrick StoxSMX Advanced 2018 SEO for Javascript Frameworks by Patrick Stox
SMX Advanced 2018 SEO for Javascript Frameworks by Patrick Stox
 
Everything 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 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 Stox
 
Pubcon Vegas 2017 You're Going To Screw Up International SEO - Patrick Stox
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 Stox
 
NLP Sitemap SMX 2016 Patrick Stox Latest In Advanced Technical SEO
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
 
Raleigh SEO Meetup April 2018 - Dan Hinckley
Raleigh SEO Meetup April 2018 - Dan HinckleyRaleigh SEO Meetup April 2018 - Dan Hinckley
Raleigh SEO Meetup April 2018 - Dan Hinckley
 
Troubleshooting Technical SEO Problems - Patrick Stox - Raleigh SEO Meetup
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
 
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 ...
How to build simple web apps to automate your SEO tasks - BrightonSEO Spring ...
 

Ähnlich wie JavaScript SEO Ungagged 2019 Patrick Stox

How Search Works
How Search WorksHow Search Works
How Search WorksAhrefs
 
Google for webmasters
Google for webmastersGoogle for webmasters
Google for webmastersMK-D Activo
 
Tutorial Google For Webmasters
Tutorial Google For WebmastersTutorial Google For Webmasters
Tutorial Google For Webmastersmamos
 
Cubrickz - Tutorial: Google for Webmasters
Cubrickz - Tutorial: Google for WebmastersCubrickz - Tutorial: Google for Webmasters
Cubrickz - Tutorial: Google for WebmastersRed Angel, LLC
 
CATOLICO LUCHADOR - Tutorial: Google for Webmasters
CATOLICO LUCHADOR - Tutorial: Google for WebmastersCATOLICO LUCHADOR - Tutorial: Google for Webmasters
CATOLICO LUCHADOR - Tutorial: Google for WebmastersPedro Briceño
 
Winnipeg Pay Per Click Advertising - Tutorial: Google for Webmas
Winnipeg Pay Per Click Advertising  - Tutorial: Google for WebmasWinnipeg Pay Per Click Advertising  - Tutorial: Google for Webmas
Winnipeg Pay Per Click Advertising - Tutorial: Google for Webmasdavidawass
 
ваш сантехник в Питере - Tutorial: Google for Webmasters
ваш сантехник в Питере - Tutorial: Google for Webmastersваш сантехник в Питере - Tutorial: Google for Webmasters
ваш сантехник в Питере - Tutorial: Google for Webmastersкрылов сергей
 
ваш сантехник в Питере - Tutorial: Google for Webmasters
ваш сантехник в Питере - Tutorial: Google for Webmastersваш сантехник в Питере - Tutorial: Google for Webmasters
ваш сантехник в Питере - Tutorial: Google for Webmastersкрылов сергей
 
Javascript SEO Devs and SEOs playing nicely
Javascript SEO Devs and SEOs playing nicelyJavascript SEO Devs and SEOs playing nicely
Javascript SEO Devs and SEOs playing nicelyPeter Mead
 
Technical SEO: Crawl Space Management - SEOZone Istanbul 2014
Technical SEO: Crawl Space Management - SEOZone Istanbul 2014Technical SEO: Crawl Space Management - SEOZone Istanbul 2014
Technical SEO: Crawl Space Management - SEOZone Istanbul 2014Bastian Grimm
 
Advanced Seo Web Development Tech Ed 2008
Advanced Seo Web Development Tech Ed 2008Advanced Seo Web Development Tech Ed 2008
Advanced Seo Web Development Tech Ed 2008Nathan Buggia
 
Search Engine Optimization Tools - Tutorial: Google for Webmaster
Search Engine Optimization Tools - Tutorial: Google for WebmasterSearch Engine Optimization Tools - Tutorial: Google for Webmaster
Search Engine Optimization Tools - Tutorial: Google for WebmasterPraveen Sudarsan
 
Future Point Learning - Tutorial: Google for Webmasters
Future Point Learning - Tutorial: Google for WebmastersFuture Point Learning - Tutorial: Google for Webmasters
Future Point Learning - Tutorial: Google for Webmasterssebabrata
 
LIGHTKEN - Tutorial: Google for Webmasters
LIGHTKEN - Tutorial: Google for WebmastersLIGHTKEN - Tutorial: Google for Webmasters
LIGHTKEN - Tutorial: Google for WebmastersKenton Light
 
baba mba finance - Tutorial: Google for Webmasters
baba mba finance - Tutorial: Google for Webmastersbaba mba finance - Tutorial: Google for Webmasters
baba mba finance - Tutorial: Google for WebmastersBabasab Patil
 
Blog de Antonio pina - Tutorial: Google for Webmasters
Blog de Antonio pina - Tutorial: Google for WebmastersBlog de Antonio pina - Tutorial: Google for Webmasters
Blog de Antonio pina - Tutorial: Google for WebmastersXZ2000
 
Charisma Productions Network - Tutorial: Google for Webmasters
Charisma Productions Network - Tutorial: Google for WebmastersCharisma Productions Network - Tutorial: Google for Webmasters
Charisma Productions Network - Tutorial: Google for WebmastersBetty Andrews
 

Ähnlich wie JavaScript SEO Ungagged 2019 Patrick Stox (20)

How Search Works
How Search WorksHow Search Works
How Search Works
 
Google for webmasters
Google for webmastersGoogle for webmasters
Google for webmasters
 
Tutorial Google For Webmasters
Tutorial Google For WebmastersTutorial Google For Webmasters
Tutorial Google For Webmasters
 
Cubrickz - Tutorial: Google for Webmasters
Cubrickz - Tutorial: Google for WebmastersCubrickz - Tutorial: Google for Webmasters
Cubrickz - Tutorial: Google for Webmasters
 
CATOLICO LUCHADOR - Tutorial: Google for Webmasters
CATOLICO LUCHADOR - Tutorial: Google for WebmastersCATOLICO LUCHADOR - Tutorial: Google for Webmasters
CATOLICO LUCHADOR - Tutorial: Google for Webmasters
 
Winnipeg Pay Per Click Advertising - Tutorial: Google for Webmas
Winnipeg Pay Per Click Advertising  - Tutorial: Google for WebmasWinnipeg Pay Per Click Advertising  - Tutorial: Google for Webmas
Winnipeg Pay Per Click Advertising - Tutorial: Google for Webmas
 
ваш сантехник в Питере - Tutorial: Google for Webmasters
ваш сантехник в Питере - Tutorial: Google for Webmastersваш сантехник в Питере - Tutorial: Google for Webmasters
ваш сантехник в Питере - Tutorial: Google for Webmasters
 
ваш сантехник в Питере - Tutorial: Google for Webmasters
ваш сантехник в Питере - Tutorial: Google for Webmastersваш сантехник в Питере - Tutorial: Google for Webmasters
ваш сантехник в Питере - Tutorial: Google for Webmasters
 
Javascript SEO Devs and SEOs playing nicely
Javascript SEO Devs and SEOs playing nicelyJavascript SEO Devs and SEOs playing nicely
Javascript SEO Devs and SEOs playing nicely
 
Technical SEO: Crawl Space Management - SEOZone Istanbul 2014
Technical SEO: Crawl Space Management - SEOZone Istanbul 2014Technical SEO: Crawl Space Management - SEOZone Istanbul 2014
Technical SEO: Crawl Space Management - SEOZone Istanbul 2014
 
Boost and SEO
Boost and SEOBoost and SEO
Boost and SEO
 
Advanced Seo Web Development Tech Ed 2008
Advanced Seo Web Development Tech Ed 2008Advanced Seo Web Development Tech Ed 2008
Advanced Seo Web Development Tech Ed 2008
 
Seo and analytics basics
Seo and analytics basicsSeo and analytics basics
Seo and analytics basics
 
Technial SEO
Technial SEOTechnial SEO
Technial SEO
 
Search Engine Optimization Tools - Tutorial: Google for Webmaster
Search Engine Optimization Tools - Tutorial: Google for WebmasterSearch Engine Optimization Tools - Tutorial: Google for Webmaster
Search Engine Optimization Tools - Tutorial: Google for Webmaster
 
Future Point Learning - Tutorial: Google for Webmasters
Future Point Learning - Tutorial: Google for WebmastersFuture Point Learning - Tutorial: Google for Webmasters
Future Point Learning - Tutorial: Google for Webmasters
 
LIGHTKEN - Tutorial: Google for Webmasters
LIGHTKEN - Tutorial: Google for WebmastersLIGHTKEN - Tutorial: Google for Webmasters
LIGHTKEN - Tutorial: Google for Webmasters
 
baba mba finance - Tutorial: Google for Webmasters
baba mba finance - Tutorial: Google for Webmastersbaba mba finance - Tutorial: Google for Webmasters
baba mba finance - Tutorial: Google for Webmasters
 
Blog de Antonio pina - Tutorial: Google for Webmasters
Blog de Antonio pina - Tutorial: Google for WebmastersBlog de Antonio pina - Tutorial: Google for Webmasters
Blog de Antonio pina - Tutorial: Google for Webmasters
 
Charisma Productions Network - Tutorial: Google for Webmasters
Charisma Productions Network - Tutorial: Google for WebmastersCharisma Productions Network - Tutorial: Google for Webmasters
Charisma Productions Network - Tutorial: Google for Webmasters
 

Mehr von patrickstox

A crash course into SEO and what moves the needle with scalable processes
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
 
Nofollow UGC Sponsored SEO From Home Patrick Stox Ahrefs
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
 
Nofollow UGC Sponsored SMX West 2020 Patrick Stox
Nofollow UGC Sponsored SMX West 2020 Patrick StoxNofollow UGC Sponsored SMX West 2020 Patrick Stox
Nofollow UGC Sponsored SMX West 2020 Patrick Stoxpatrickstox
 
How to find other affiliates most successful content patrick stox
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
 
Data Visualization for SEO
Data Visualization for SEOData Visualization for SEO
Data Visualization for SEOpatrickstox
 
AMP for Enterprises - SMX West - Patrick Stox
AMP for Enterprises - SMX West - Patrick StoxAMP for Enterprises - SMX West - Patrick Stox
AMP for Enterprises - SMX West - Patrick Stoxpatrickstox
 
Mobile First Indexing - SMX Advanced 2017 - Patrick Stox
Mobile First Indexing - SMX Advanced 2017 - Patrick StoxMobile First Indexing - SMX Advanced 2017 - Patrick Stox
Mobile First Indexing - SMX Advanced 2017 - Patrick Stoxpatrickstox
 
Better Safe Than Sorry with HTTPS - SMX East 2016 - Patrick Stox
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
 
Google Tag Manager Can Do What
Google Tag Manager Can Do WhatGoogle Tag Manager Can Do What
Google Tag Manager Can Do Whatpatrickstox
 
Link Reclamation Strategies
Link Reclamation Strategies Link Reclamation Strategies
Link Reclamation Strategies patrickstox
 
Everyone Screws Up HTTPS
Everyone Screws Up HTTPSEveryone Screws Up HTTPS
Everyone Screws Up HTTPSpatrickstox
 

Mehr von patrickstox (11)

A crash course into SEO and what moves the needle with scalable processes
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
 
Nofollow UGC Sponsored SEO From Home Patrick Stox Ahrefs
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
 
Nofollow UGC Sponsored SMX West 2020 Patrick Stox
Nofollow UGC Sponsored SMX West 2020 Patrick StoxNofollow UGC Sponsored SMX West 2020 Patrick Stox
Nofollow UGC Sponsored SMX West 2020 Patrick Stox
 
How to find other affiliates most successful content patrick stox
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
 
Data Visualization for SEO
Data Visualization for SEOData Visualization for SEO
Data Visualization for SEO
 
AMP for Enterprises - SMX West - Patrick Stox
AMP for Enterprises - SMX West - Patrick StoxAMP for Enterprises - SMX West - Patrick Stox
AMP for Enterprises - SMX West - Patrick Stox
 
Mobile First Indexing - SMX Advanced 2017 - Patrick Stox
Mobile First Indexing - SMX Advanced 2017 - Patrick StoxMobile First Indexing - SMX Advanced 2017 - Patrick Stox
Mobile First Indexing - SMX Advanced 2017 - Patrick Stox
 
Better Safe Than Sorry with HTTPS - SMX East 2016 - Patrick Stox
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
 
Google Tag Manager Can Do What
Google Tag Manager Can Do WhatGoogle Tag Manager Can Do What
Google Tag Manager Can Do What
 
Link Reclamation Strategies
Link Reclamation Strategies Link Reclamation Strategies
Link Reclamation Strategies
 
Everyone Screws Up HTTPS
Everyone Screws Up HTTPSEveryone Screws Up HTTPS
Everyone Screws Up HTTPS
 

Kürzlich hochgeladen

Social Samosa Guidebook for SAMMIES 2024.pdf
Social Samosa Guidebook for SAMMIES 2024.pdfSocial Samosa Guidebook for SAMMIES 2024.pdf
Social Samosa Guidebook for SAMMIES 2024.pdfSocial Samosa
 
VIP 7001035870 Find & Meet Hyderabad Call Girls Film Nagar high-profile Call ...
VIP 7001035870 Find & Meet Hyderabad Call Girls Film Nagar high-profile Call ...VIP 7001035870 Find & Meet Hyderabad Call Girls Film Nagar high-profile Call ...
VIP 7001035870 Find & Meet Hyderabad Call Girls Film Nagar high-profile Call ...aditipandeya
 
The+State+of+Careers+In+Retention+Marketing-2.pdf
The+State+of+Careers+In+Retention+Marketing-2.pdfThe+State+of+Careers+In+Retention+Marketing-2.pdf
The+State+of+Careers+In+Retention+Marketing-2.pdfSocial Samosa
 
Five Essential Tools for International SEO - Natalia Witczyk - SearchNorwich 15
Five Essential Tools for International SEO - Natalia Witczyk - SearchNorwich 15Five Essential Tools for International SEO - Natalia Witczyk - SearchNorwich 15
Five Essential Tools for International SEO - Natalia Witczyk - SearchNorwich 15SearchNorwich
 
How to Leverage Behavioral Science Insights for Direct Mail Success
How to Leverage Behavioral Science Insights for Direct Mail SuccessHow to Leverage Behavioral Science Insights for Direct Mail Success
How to Leverage Behavioral Science Insights for Direct Mail SuccessAggregage
 
Brand experience Dream Center Peoria Presentation.pdf
Brand experience Dream Center Peoria Presentation.pdfBrand experience Dream Center Peoria Presentation.pdf
Brand experience Dream Center Peoria Presentation.pdftbatkhuu1
 
Kraft Mac and Cheese campaign presentation
Kraft Mac and Cheese campaign presentationKraft Mac and Cheese campaign presentation
Kraft Mac and Cheese campaign presentationtbatkhuu1
 
Labour Day Celebrating Workers and Their Contributions.pptx
Labour Day Celebrating Workers and Their Contributions.pptxLabour Day Celebrating Workers and Their Contributions.pptx
Labour Day Celebrating Workers and Their Contributions.pptxelizabethella096
 
Cost-effective tactics for navigating CPC surges
Cost-effective tactics for navigating CPC surgesCost-effective tactics for navigating CPC surges
Cost-effective tactics for navigating CPC surgesPushON Ltd
 
Factors-Influencing-Branding-Strategies.pptx
Factors-Influencing-Branding-Strategies.pptxFactors-Influencing-Branding-Strategies.pptx
Factors-Influencing-Branding-Strategies.pptxVikasTiwari846641
 
Defining Marketing for the 21st Century,kotler
Defining Marketing for the 21st Century,kotlerDefining Marketing for the 21st Century,kotler
Defining Marketing for the 21st Century,kotlerAmirNasiruog
 
Local SEO Domination: Put your business at the forefront of local searches!
Local SEO Domination:  Put your business at the forefront of local searches!Local SEO Domination:  Put your business at the forefront of local searches!
Local SEO Domination: Put your business at the forefront of local searches!dstvtechnician
 
BDSM⚡Call Girls in Sector 128 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 128 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 128 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 128 Noida Escorts >༒8448380779 Escort ServiceDelhi Call girls
 
Google 3rd-Party Cookie Deprecation [Update] + 5 Best Strategies
Google 3rd-Party Cookie Deprecation [Update] + 5 Best StrategiesGoogle 3rd-Party Cookie Deprecation [Update] + 5 Best Strategies
Google 3rd-Party Cookie Deprecation [Update] + 5 Best StrategiesSearch Engine Journal
 
Unraveling the Mystery of the Hinterkaifeck Murders.pptx
Unraveling the Mystery of the Hinterkaifeck Murders.pptxUnraveling the Mystery of the Hinterkaifeck Murders.pptx
Unraveling the Mystery of the Hinterkaifeck Murders.pptxelizabethella096
 
Situation Analysis | Management Company.
Situation Analysis | Management Company.Situation Analysis | Management Company.
Situation Analysis | Management Company.DanielaQuiroz63
 

Kürzlich hochgeladen (20)

Social Samosa Guidebook for SAMMIES 2024.pdf
Social Samosa Guidebook for SAMMIES 2024.pdfSocial Samosa Guidebook for SAMMIES 2024.pdf
Social Samosa Guidebook for SAMMIES 2024.pdf
 
VIP 7001035870 Find & Meet Hyderabad Call Girls Film Nagar high-profile Call ...
VIP 7001035870 Find & Meet Hyderabad Call Girls Film Nagar high-profile Call ...VIP 7001035870 Find & Meet Hyderabad Call Girls Film Nagar high-profile Call ...
VIP 7001035870 Find & Meet Hyderabad Call Girls Film Nagar high-profile Call ...
 
The+State+of+Careers+In+Retention+Marketing-2.pdf
The+State+of+Careers+In+Retention+Marketing-2.pdfThe+State+of+Careers+In+Retention+Marketing-2.pdf
The+State+of+Careers+In+Retention+Marketing-2.pdf
 
Five Essential Tools for International SEO - Natalia Witczyk - SearchNorwich 15
Five Essential Tools for International SEO - Natalia Witczyk - SearchNorwich 15Five Essential Tools for International SEO - Natalia Witczyk - SearchNorwich 15
Five Essential Tools for International SEO - Natalia Witczyk - SearchNorwich 15
 
How to Leverage Behavioral Science Insights for Direct Mail Success
How to Leverage Behavioral Science Insights for Direct Mail SuccessHow to Leverage Behavioral Science Insights for Direct Mail Success
How to Leverage Behavioral Science Insights for Direct Mail Success
 
Brand experience Dream Center Peoria Presentation.pdf
Brand experience Dream Center Peoria Presentation.pdfBrand experience Dream Center Peoria Presentation.pdf
Brand experience Dream Center Peoria Presentation.pdf
 
Kraft Mac and Cheese campaign presentation
Kraft Mac and Cheese campaign presentationKraft Mac and Cheese campaign presentation
Kraft Mac and Cheese campaign presentation
 
Generative AI Master Class - Generative AI, Unleash Creative Opportunity - Pe...
Generative AI Master Class - Generative AI, Unleash Creative Opportunity - Pe...Generative AI Master Class - Generative AI, Unleash Creative Opportunity - Pe...
Generative AI Master Class - Generative AI, Unleash Creative Opportunity - Pe...
 
Labour Day Celebrating Workers and Their Contributions.pptx
Labour Day Celebrating Workers and Their Contributions.pptxLabour Day Celebrating Workers and Their Contributions.pptx
Labour Day Celebrating Workers and Their Contributions.pptx
 
Cost-effective tactics for navigating CPC surges
Cost-effective tactics for navigating CPC surgesCost-effective tactics for navigating CPC surges
Cost-effective tactics for navigating CPC surges
 
Factors-Influencing-Branding-Strategies.pptx
Factors-Influencing-Branding-Strategies.pptxFactors-Influencing-Branding-Strategies.pptx
Factors-Influencing-Branding-Strategies.pptx
 
Defining Marketing for the 21st Century,kotler
Defining Marketing for the 21st Century,kotlerDefining Marketing for the 21st Century,kotler
Defining Marketing for the 21st Century,kotler
 
Local SEO Domination: Put your business at the forefront of local searches!
Local SEO Domination:  Put your business at the forefront of local searches!Local SEO Domination:  Put your business at the forefront of local searches!
Local SEO Domination: Put your business at the forefront of local searches!
 
BUY GMAIL ACCOUNTS PVA USA IP INDIAN IP GMAIL
BUY GMAIL ACCOUNTS PVA USA IP INDIAN IP GMAILBUY GMAIL ACCOUNTS PVA USA IP INDIAN IP GMAIL
BUY GMAIL ACCOUNTS PVA USA IP INDIAN IP GMAIL
 
Foundation First - Why Your Website and Content Matters - David Pisarek
Foundation First - Why Your Website and Content Matters - David PisarekFoundation First - Why Your Website and Content Matters - David Pisarek
Foundation First - Why Your Website and Content Matters - David Pisarek
 
BDSM⚡Call Girls in Sector 128 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 128 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 128 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 128 Noida Escorts >༒8448380779 Escort Service
 
Google 3rd-Party Cookie Deprecation [Update] + 5 Best Strategies
Google 3rd-Party Cookie Deprecation [Update] + 5 Best StrategiesGoogle 3rd-Party Cookie Deprecation [Update] + 5 Best Strategies
Google 3rd-Party Cookie Deprecation [Update] + 5 Best Strategies
 
Unraveling the Mystery of the Hinterkaifeck Murders.pptx
Unraveling the Mystery of the Hinterkaifeck Murders.pptxUnraveling the Mystery of the Hinterkaifeck Murders.pptx
Unraveling the Mystery of the Hinterkaifeck Murders.pptx
 
Brand Strategy Master Class - Juntae DeLane
Brand Strategy Master Class - Juntae DeLaneBrand Strategy Master Class - Juntae DeLane
Brand Strategy Master Class - Juntae DeLane
 
Situation Analysis | Management Company.
Situation Analysis | Management Company.Situation Analysis | Management Company.
Situation Analysis | Management Company.
 

JavaScript SEO Ungagged 2019 Patrick Stox

  • 2. @patrickstox • Product Advisor, Technical SEO, & Brand Ambassador at Ahrefs • I wrote for Search Engine Land, now Ahrefs blog • I speak at some conferences like SMX, Pubcon, TechSEO Boost • Organizer for the Raleigh SEO Meetup (most successful in US) and the Beer & SEO Meetup • We also run a conference, the Raleigh SEO Conference • Judge: 2017/18/19 US Search Awards, 2017/18/19 UK Search Awards, 2018/19 Interactive Marketing Awards • Founder Technical SEO Slack Group • Moderator /r/TechSEO on Reddit • Finalist for SEO Speaker of the Year and SEO Contributor of the Year - 2018 Search Engine Land Awards. • On a lot of top SEO lists like 140 of Today's Top SEO Experts to Follow. • Part of SERoundtable’s Honor an SEO series Who is Patrick Stox?
  • 5. @patrickstox You Don’t Need To Learn JavaScript You just need to know how some of the systems work and how to troubleshoot it.
  • 6. @patrickstox Why JS? • Clean structure • Strong community • Reusable components • Easy debugging • Interactive experiences • Reduced code • Clean structure • Map app state to DOM
  • 8. @patrickstox Monolithic vs Headless / Decoupled https://medium.com/@bretcameron/building-my-first-headless-cms- what-i-wish-i-knew-at-the-start-1f3ef3a00bb8
  • 9. @patrickstox Tree Shaking (Before) Loads everything potentially needed https://stackoverflow.com/questions/45884414/what-is-tree-shaking- and-why-would-i-need-it
  • 10. @patrickstox Tree Shaking (After) Loads only what is needed Eliminates unused code Smaller Pages https://stackoverflow.com/questions/45884414/what-is-tree-shaking- and-why-would-i-need-it
  • 12. @patrickstox Why Code Splitting Interactivity JavaScript competes for the main thread. While a task is running a page can’t respond to a user input, this is the delay felt by users. Source: https://web.dev/long-tasks-devtools
  • 14. @patrickstox Content Initially Indexed is HTML Snapshot Source Google: https://developers.google.com/search/docs/guides/javascript-seo-basics
  • 15. @patrickstox Render Options Source Google: https://developers.google.com/web/updates/2019/02/rendering- on-the-web
  • 16. @patrickstox Don’t CSR Source Google: https://developers.google.com/web/updates/2019/02/rendering- on-the-web
  • 17. @patrickstox Google Recommends Dynamic Rendering Dynamic rendering means switching between client-side rendered and pre- rendered content for specific user agents. Options: Puppeteer, Rendertron, prerender.io Source Google: https://developers.google.com/search/docs/guides/dynamic- rendering
  • 19. @patrickstox Don’t Abuse It, Cloaking Using dynamic rendering to serve completely different content to users and crawlers can be considered cloaking Cloaking refers to the practice of presenting different content or URLs to human users and search engines. Cloaking is considered a violation of Google’s Webmaster Guidelines because it provides our users with different results than they expected. https://support.google.com/webmasters/answer/66355?hl =en
  • 20. @patrickstox Other Search Engines Bing has the capability to render JS, but the scale is unknown. https://blogs.bing.com/webmaster/october-2019/The-new-evergreen-Bingbot- simplifying-SEO-by-leveraging-Microsoft-Edge/ They mostly use this for top pages and web spam. Yandex, Baidu = limited Other search engines, probably not.
  • 21. @patrickstox Scaling Rendering Is Expensive Rendering basically needs to behave like a browser, that’s both complicated and expensive. Crawl costs go up by about 20x when you start rendering. Gets interesting at scale, trillions of pages in the index. Mainly because of 1) fetching the content and then 2) running the javascript, its a lot of new logic Javascript – good news is they’re running Chrome so the environment is good. Bad thing is theres a lot of js and they need to run a lot of it. Google is constrained with CPU globally https://www.jackiecchu.com/seo/google-webmaster-conference-mountain-view- 2019/
  • 22. @patrickstox Ahrefs Crawling Every day 7 Billion Pages Render 80 Million JS Pages This requires 600 Servers ***Site Audit also supports JS
  • 23. @patrickstox Testing Don’t use Google’s cache. That’s an HTML snapshot processed by your browser. Don’t use view-source, that’s the HTML. Do use Mobile Friendly Test https://search.google.com/test/mobile-friendly Do use URL Inspection Tool https://search.google.com/search-console -Show loaded/blocked resources, console output and exceptions, rendered DOM Do use Rich Results (desktop+mobile): https://search.google.com/test/rich- results Google search: site:whatever.com "part of your text“ to check if text is seen
  • 24. @patrickstox You May See Another Page/Domain Indexed If you’re using an app shell model pages may be detected as duplicate content and put into the same cluster of pages with the wrong one shown. Basically the html looked the same as something else so they figured the pages were duplicate and only wanted 1 record in their index. This should resolve once it’s been through the renderer.
  • 25. @patrickstox Need To Know About Googlebot Declines user permission requests Stateless, doesn't navigate • Local Storage and Session Storage data are cleared across page loads. • HTTP Cookies are cleared across page loads. Use feature detection to identify supported APIs and capabilities Make sure your web components are search-friendly: • To encapsulate and hide implementation details, use shadow DOM. • Put your content into light DOM whenever possible. https://developers.google.com/search/docs/guides/fix-search-javascript
  • 26. @patrickstox Need To Know About Googlebot Will hit APIs if it’s allowed, potentially a lot They need to access resources (like JavaScript), don’t block them Between the initial snapshot and the rendered version they will choose the most restrictive statements (nofollow vs follow, noindex vs index, etc) Some pages take longer to be processed than others: https://webmasters.googleblog.com/2017/01/what-crawl-budget-means-for- googlebot.html
  • 27. @patrickstox Need To Know About Googlebot Internal links may not be picked up and added to crawl before the render happens Mobile First: https://webmasters.googleblog.com/2018/03/rolling-out-mobile-first- indexing.html
  • 28. @patrickstox Need To Know About Googlebot Mostly crawls from West Coast US (Mountain View). Some crawling internationally 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. They download pages and download resources, but all of this is stored and run as fast as possible as “rendering”.
  • 30. @patrickstox Need To Know About Googlebot 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/
  • 31. @patrickstox Best Practices Don't use hashes # for routing Load content by default without needing an action like click, mouseover, scroll Make sure links are links: <a href=“/good-link”>Will be crawled</a> • No
  • 32. @patrickstox Best Practice: Clean URLs Change URLs for different content: History API and HTML5 pushstate() Use your router: None of this: ?Topics%5B0%5D%5B0%5D=cat.topic%3Ainfrastructure A JavaScript router is what allows state changes and you can use it to have clean URLs.
  • 33. @patrickstox Best Practice: Use a 404 When Possible JS can’t throw a 404, but you have options: JS redirect or route to 404 page on a server with an actual 404 response. Not as great: You can add a noindex to any error pages along with a message like “404 Page Not Found”. Will be treated as a soft-404 even with status code 200 shown. Lots of analytics may fire and lots of SEO tools + other tools don’t look for soft- 404s, so not having this status code when looking at data causes issues.
  • 34. @patrickstox As an SEO Almost any setup is going to have a version of meta tag module or Helmet or something similar. Think of these as your “SEO plugin”. They let you set the titles, descriptions, canonicals, etc.
  • 35. @patrickstox Resources SEO Mythbusting Series + JS SEO Series https://www.youtube.com/channel/UCWf2ZlNsCGDS89VBF_awNvA JS SEO Basics: https://developers.google.com/search/docs/guides/javascript- seo-basics Dynamic Rendering: https://developers.google.com/search/docs/guides/dynamic- rendering Mobile Friendly Test: https://search.google.com/test/mobile-friendly Google Search Console: https://search.google.com/search-console JavaScript Working Group: https://groups.google.com/forum/#!forum/js-sites-wg
  • 36. @patrickstox Bonus Let’s talk about Service Workers, especially Edge Workers / Serverless Functions / Service Workers at the Edge / Cloudflare Workers

Hinweis der Redaktion

  1. WordPress was easy and plugins added functionality, it’s kind of the same thing but better
  2. Optimizely Performance Edge