SlideShare ist ein Scribd-Unternehmen logo
1 von 97
How to Make
JavaScript
Websites
Successful
in Google?
A few words
about myself
I’m an SEO guy.
I am not
your enemy ;)
I like programming
With my colleagues:
We have literally spent
years on:
Maria
Cieślak
Bartosz
Góralewicz
- researching the JavaScript
SEO thing
- helping multiple clients to
ensure their JS websites
rank high in Google
My Ultimate Guide
to JavaScript SEO
was extremely viral
So...
Client:
This is our website.
We don’t rank
in Google.
Can you guys
help us?
We will
help you.
A JavaScript loader was the
bad guy.
Finally, we spotted
the issue!
LOADING...
Now they are
successful in
Google!
We need to
go deeper
Then we started
researching
The JavaScript
SEO topic
Yo!
Here is a list of simple Hello World
Projects utilising different JS frameworks
used for JS crawling tests
JSSEO.expert
experiment
“But I am a developer.
Why should I care about traffic
from Google?”
“But I am a developer.
Why should I care about traffic
from Google?”
● Traffic from Google = Money
We SHOULD care about
traffic from Google. It’s REAL.
● Traffic from Google = Money
● Poor JavaScript SEO = Google Ranking Drops
We SHOULD care about
traffic from Google. It’s REAL.
● Traffic from Google = Money
● Poor JavaScript SEO = Google Ranking Drops
● Google Ranking Drops = Less money = Angry boss
We SHOULD care about
traffic from Google. It’s REAL.
● Traffic from Google = Money
● Poor JavaScript SEO = Google Ranking Drops
● Google Ranking Drops = Less money = Angry boss
...and it makes cats grumpy
A few examples
of famous JavaScript
website drops
in Google
Example #1
Example #2
sports.yahoo.com
Example #3
answers.yahoo.com
The question...
The answer...
What if I told you
that Google’s not perfect
at rendering JS?
Client-side
rendering
- the default technique
It’s like a cooking recipe - Google and
users have to render it on their own.
It can be problematic for Google
Yes… Recently, Google did a really good
job with updating their Web Rendering
Service
BEFORE the 7th of May AFTER the 7th of May
Google has been using an
“ancient” 4-year old browser for
rendering - Chrome 41.
It wasn’t even supporting ES6!
Google Web Rendering Service
is based on the most recent
version of Chrome
It’s great news, but things are more complicated than that...
…Google is still
not perfect
at rendering
JavaScript
Google is still not perfect at rendering JavaScript
Google crawls JavaScript
websites
much slower
than HTML Pages
Two waves
of indexing
But how long
do you HAVE
to wait?
Google’s John Mueller:
“...usually it’s on the
order of days to a few
weeks even.”
Google is still not perfect at rendering JavaScript
The risk: Google may
decide not to fetch
some JavaScript
resources
The Risk: Google may decide not to fetch some
JavaScript resources
I think we
DON’T need
to download
this JSON file
Google is still not perfect at rendering JavaScript
Googlebot doesn’t act
like a real user
It doesn’t click the buttons
It doesn’t scroll!
Watch out for your infinite scrolling!
There are still many websites that
implement infinite scrolling
incorrectly...
In the case of these
websites Googlebot
cannot access
the second page
of pagination.
Google is still not perfect at rendering JavaScript
Google’s
rendering
of JavaScript is
not perfect
TIMEOUTS
Google limits:
TIMEOUTS
Remember: There are 130 trillion
other documents waiting for
Googlebot’s visit
Googlebot is based on the newest
version of Chrome. BUT it’s not the same!
● Googlebot declines
user permission
requests
● Cookies, local
& session storage
are cleared across
page loads
● Browser always
download all the
resources
For instance:
Googlebot may not...
Always check if
Google has no issues
with rendering
your website
Best tool:
URL Inspection Tool (a part of
Google Search Console).
Avoid using Chrome for it.
Google’s rendering errors
may be a big deal
Google encounters
rendering errors
Google stops executing
JavaScript
No content
indexed
No
money
Angular.io had JavaScript SEO
issues in the past
Igor Minar from
Angular.io:
“Given that we haven’t changed
the problematic code in 8
months (...)
I believe that something has
changed in crawlers during
this period of time which
caused most of the site to be
de-indexed, which then
resulted in the traffic loss.”
The issue:
Google deindexed
many pages of
Angular.io
due to rendering
errors
Let’s go back to our
experiment...
JSSEO.expert
Initial results:
Google DOESN’T
support Angular 2
Initial results:
Google DOESN’T
support Angular 2
Google didn’t index our Angular
experiment because of...
errors in the
official Angular
documentation
Now we know
about Google’s
limitations in
rendering
JavaScript
JavaScript
SEO
Taming the Beast
in 5 Easy Steps
Step 1
Ensure that Google can
render your content
Use the URL inspection tool
provided by Google
● It’s free
Step 1
Ensure that Google can
render your content
Use the URL inspection tool
provided by Google
● It’s free
● It shows rendering errors
Ask yourself the
following questions
Ask yourself the
following questions
● Is the main content visible?
● Can Google see the
user-generated comments?
● Can Google access areas like
similar articles and products?
● Can Google see other crucial
elements of your page?
What if Google cannot render your page properly?
● You blocked crucial
JavaScript files for
Googlebot
● Some errors occurred
while rendering
Here are some
possible reasons:
● Google encountered
timeouts while rendering
Step 2
Make sure you didn’t block your
crucial JavaScript files in robots.txt
What is robots.txt?
Step 2
Make sure you didn’t block
your crucial JavaScript files
in robots.txt
Google’s URL inspection
tool comes to the rescue!
Step 3
Use the URL Inspection
tool for spotting
JavaScript errors
Step 4
Check if your content has
been indexed in Google
How do you know
if content is really
indexed in Google?
Step 4
Check if your content
has been indexed
in Google
site:URL “fragment”
Step 5 Make sure Google can discover your internal links
Google needs proper <a href> links to
discover the URLs on your website
If you followed
these 5 steps
and it still
doesn’t work...
Consider dynamic rendering
or hybrid rendering
Example Recommended by
Dynamic rendering YouTube
Hybrid rendering
(also called “universal JS”
or “isomorphic JS”)
Airbnb
First option:
Use dynamic
rendering
USERS
SERVER
RENDERERGooglebot
Initial HTML+JS
Static
HTML
BUT a static version
for Googlebot
● Serving an interactive
version for users
First option:
Use dynamic
rendering
Officially
recommended
by Google for rapidly
changing websites
Most popular
dynamic rendering solutions
Renderton
Puppeteer
Prerender.io
Free
Free
Service/Free
But dynamic
rendering is not
a silver bullet
Disqus.com
What went wrong?
We informed
Disqus
about the issue
Second option:
Hybrid rendering
How it works
Initial, server-side rendered HTML is
sent to users and search engines.
Then JavaScript is loaded on top of that.
Hybrid rendering?
Which brands use
If you use
for hybrid rendering
...try
Next.js is
the next...
BIG thing
The State of JS 2018 Survey:
35% of developers heard of Next.js
and want to learn it.
It’s actively
maintained
Friends of Next.js
Vue.js Angular
So many
choices...
Relatively
static website
Dynamic website
You can consider
Client-side rendering
● Hybrid rendering, or
● Dynamic rendering
It’s not only about Google!
Other search engines
struggle with JavaScript.
Facebook, Twitter
THE SAME!
Technically, Bing can render
JavaScript.
But struggles with rendering
JavaScript at scale
Bing struggles with rendering
JavaScript at scale
Bing struggles with rendering
JavaScript at scale
Can Bing index
the content
of Angular.io?
Bing struggles with rendering
JavaScript at scale
Can Bing
index the
content of
Vimeo?
Can Bing index the content
of Vimeo?
Let’s talk
about...
Twitter
Angular.io is doing
fine on Twitter
Angular.io is NOT doing
fine on Twitter
Vue.js is doing
MUCH better.
Key takeaways
● It’s the HTML JS Era (lucky you!)
● Rendering delays are still a problem
● Even after Chromium update, Google still doesn’t support
many modern JavaScript features (i.e. no service workers, no
geolocation API)
● You should always ensure that Google can render and index
your content (choose a sample of pages)
Worth reading
● Ultimate Guide to JavaScript SEO
https://www.onely.com/blog/ultimate-guide-javascript-seo/
● How to Diagnose and Solve JavaScript SEO Issues in 6 Steps
by Tomek Rudzki https://moz.com/blog/diagnose-and-solve-javascript-
seo-issues
● How to prepare for a JS migration by Maria Cieślak
https://searchengineland.com/how-to-prepare-for-a-js-migration-308795
Thank you,
everyone!
@TomekRudzki
/TomekRudzki

Weitere ähnliche Inhalte

Kürzlich hochgeladen

Branding strategies of new company .pptx
Branding strategies of new company .pptxBranding strategies of new company .pptx
Branding strategies of new company .pptxVikasTiwari846641
 
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
 
Brand experience Peoria City Soccer Presentation.pdf
Brand experience Peoria City Soccer Presentation.pdfBrand experience Peoria City Soccer Presentation.pdf
Brand experience Peoria City Soccer Presentation.pdftbatkhuu1
 
Do More with Less: Navigating Customer Acquisition Challenges for Today's Ent...
Do More with Less: Navigating Customer Acquisition Challenges for Today's Ent...Do More with Less: Navigating Customer Acquisition Challenges for Today's Ent...
Do More with Less: Navigating Customer Acquisition Challenges for Today's Ent...Search Engine Journal
 
Avoid the 2025 web accessibility rush: do not fear WCAG compliance
Avoid the 2025 web accessibility rush: do not fear WCAG complianceAvoid the 2025 web accessibility rush: do not fear WCAG compliance
Avoid the 2025 web accessibility rush: do not fear WCAG complianceDamien ROBERT
 
GreenSEO April 2024: Join the Green Web Revolution
GreenSEO April 2024: Join the Green Web RevolutionGreenSEO April 2024: Join the Green Web Revolution
GreenSEO April 2024: Join the Green Web RevolutionWilliam Barnes
 
Unraveling the Mystery of Roanoke Colony: What Really Happened?
Unraveling the Mystery of Roanoke Colony: What Really Happened?Unraveling the Mystery of Roanoke Colony: What Really Happened?
Unraveling the Mystery of Roanoke Colony: What Really Happened?elizabethella096
 
Brighton SEO April 2024 - The Good, the Bad & the Ugly of SEO Success
Brighton SEO April 2024 - The Good, the Bad & the Ugly of SEO SuccessBrighton SEO April 2024 - The Good, the Bad & the Ugly of SEO Success
Brighton SEO April 2024 - The Good, the Bad & the Ugly of SEO SuccessVarn
 
How videos can elevate your Google rankings and improve your EEAT - Benjamin ...
How videos can elevate your Google rankings and improve your EEAT - Benjamin ...How videos can elevate your Google rankings and improve your EEAT - Benjamin ...
How videos can elevate your Google rankings and improve your EEAT - Benjamin ...Benjamin Szturmaj
 
pptx.marketing strategy of tanishq. pptx
pptx.marketing strategy of tanishq. pptxpptx.marketing strategy of tanishq. pptx
pptx.marketing strategy of tanishq. pptxarsathsahil
 
Call Us ➥9654467111▻Call Girls In Delhi NCR
Call Us ➥9654467111▻Call Girls In Delhi NCRCall Us ➥9654467111▻Call Girls In Delhi NCR
Call Us ➥9654467111▻Call Girls In Delhi NCRSapana Sha
 
Forecast of Content Marketing through AI
Forecast of Content Marketing through AIForecast of Content Marketing through AI
Forecast of Content Marketing through AIRinky
 
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
 
TOP DUBAI AGENCY OFFERS EXPERT DIGITAL MARKETING SERVICES.pdf
TOP DUBAI AGENCY OFFERS EXPERT DIGITAL MARKETING SERVICES.pdfTOP DUBAI AGENCY OFFERS EXPERT DIGITAL MARKETING SERVICES.pdf
TOP DUBAI AGENCY OFFERS EXPERT DIGITAL MARKETING SERVICES.pdfasiyahanif9977
 

Kürzlich hochgeladen (20)

Branding strategies of new company .pptx
Branding strategies of new company .pptxBranding strategies of new company .pptx
Branding strategies of new company .pptx
 
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
 
Brand experience Peoria City Soccer Presentation.pdf
Brand experience Peoria City Soccer Presentation.pdfBrand experience Peoria City Soccer Presentation.pdf
Brand experience Peoria City Soccer Presentation.pdf
 
Do More with Less: Navigating Customer Acquisition Challenges for Today's Ent...
Do More with Less: Navigating Customer Acquisition Challenges for Today's Ent...Do More with Less: Navigating Customer Acquisition Challenges for Today's Ent...
Do More with Less: Navigating Customer Acquisition Challenges for Today's Ent...
 
Top 5 Breakthrough AI Innovations Elevating Content Creation and Personalizat...
Top 5 Breakthrough AI Innovations Elevating Content Creation and Personalizat...Top 5 Breakthrough AI Innovations Elevating Content Creation and Personalizat...
Top 5 Breakthrough AI Innovations Elevating Content Creation and Personalizat...
 
No Cookies No Problem - Steve Krull, Be Found Online
No Cookies No Problem - Steve Krull, Be Found OnlineNo Cookies No Problem - Steve Krull, Be Found Online
No Cookies No Problem - Steve Krull, Be Found Online
 
Avoid the 2025 web accessibility rush: do not fear WCAG compliance
Avoid the 2025 web accessibility rush: do not fear WCAG complianceAvoid the 2025 web accessibility rush: do not fear WCAG compliance
Avoid the 2025 web accessibility rush: do not fear WCAG compliance
 
GreenSEO April 2024: Join the Green Web Revolution
GreenSEO April 2024: Join the Green Web RevolutionGreenSEO April 2024: Join the Green Web Revolution
GreenSEO April 2024: Join the Green Web Revolution
 
Unraveling the Mystery of Roanoke Colony: What Really Happened?
Unraveling the Mystery of Roanoke Colony: What Really Happened?Unraveling the Mystery of Roanoke Colony: What Really Happened?
Unraveling the Mystery of Roanoke Colony: What Really Happened?
 
Brighton SEO April 2024 - The Good, the Bad & the Ugly of SEO Success
Brighton SEO April 2024 - The Good, the Bad & the Ugly of SEO SuccessBrighton SEO April 2024 - The Good, the Bad & the Ugly of SEO Success
Brighton SEO April 2024 - The Good, the Bad & the Ugly of SEO Success
 
How videos can elevate your Google rankings and improve your EEAT - Benjamin ...
How videos can elevate your Google rankings and improve your EEAT - Benjamin ...How videos can elevate your Google rankings and improve your EEAT - Benjamin ...
How videos can elevate your Google rankings and improve your EEAT - Benjamin ...
 
Brand Strategy Master Class - Juntae DeLane
Brand Strategy Master Class - Juntae DeLaneBrand Strategy Master Class - Juntae DeLane
Brand Strategy Master Class - Juntae DeLane
 
pptx.marketing strategy of tanishq. pptx
pptx.marketing strategy of tanishq. pptxpptx.marketing strategy of tanishq. pptx
pptx.marketing strategy of tanishq. pptx
 
Call Us ➥9654467111▻Call Girls In Delhi NCR
Call Us ➥9654467111▻Call Girls In Delhi NCRCall Us ➥9654467111▻Call Girls In Delhi NCR
Call Us ➥9654467111▻Call Girls In Delhi NCR
 
The Fandom Dividend - Catalyzing Brand Growth through Cultural Engagement - M...
The Fandom Dividend - Catalyzing Brand Growth through Cultural Engagement - M...The Fandom Dividend - Catalyzing Brand Growth through Cultural Engagement - M...
The Fandom Dividend - Catalyzing Brand Growth through Cultural Engagement - M...
 
Creator Influencer Strategy Master Class - Corinne Rose Guirgis
Creator Influencer Strategy Master Class - Corinne Rose GuirgisCreator Influencer Strategy Master Class - Corinne Rose Guirgis
Creator Influencer Strategy Master Class - Corinne Rose Guirgis
 
Forecast of Content Marketing through AI
Forecast of Content Marketing through AIForecast of Content Marketing through AI
Forecast of Content Marketing through AI
 
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...
 
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!
 
TOP DUBAI AGENCY OFFERS EXPERT DIGITAL MARKETING SERVICES.pdf
TOP DUBAI AGENCY OFFERS EXPERT DIGITAL MARKETING SERVICES.pdfTOP DUBAI AGENCY OFFERS EXPERT DIGITAL MARKETING SERVICES.pdf
TOP DUBAI AGENCY OFFERS EXPERT DIGITAL MARKETING SERVICES.pdf
 

Empfohlen

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellSaba Software
 

Empfohlen (20)

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 

How to make JavaScript websites successful in Google | iJS 2019 - London

Hinweis der Redaktion

  1. I am an SEO guy. [Ask] who of you know what is SEO? [/Ask] (...) I believe SEOs can cooperate with JavaScript developers to make JavasScript websites successful in Google.
  2. Let’s the game begin!
  3. Now, Let me tell you a story. It was 2017, we were a quite successful SEO agency. A client came to us and asked if we can help him because his website was totally invisible in Google. He was getting zero traffic from Google.
  4. We replied: “sure, we can do it”
  5. Finally, we spotted the issue. Believe it or not, but the issue was caused by a JavaScript loader. It was weird, because users was seeing this animation only for a fraction of second. Unfortunately, the content was injected to the Document Object Model just after the animation finished. So Google simply cannot access the real content.
  6. Fixing a poor implementation of JavaScript allowed our client to start ranking in Google. And that was a great news for all of us!
  7. Then we decided we need to go deeper with the JavaScript SEO topic. It was clear that JavaScript is not going away. in 2015 Google announced that they can deal with JS pretty well. As a result, more and more websites were blindly migrating to JS frameworks. And that was leading to drops in traffic. For some reason, SEOs didn’t know how to deal with JavaScript websites and we believed it can become our niche.
  8. So we started researching the JavaScript SEO topic.
  9. So we created a website that was intended to check if Google can deal with the most popular JavaScript frameworks. Our initial result was that Google cannot properly render Angular websites. Later, I will tell you why it happened.
  10. You guys are web developers. So you may wonder: “why the heck should I care about traffic from google”. Here is why.
  11. But poor JavaScript SEO can lead to Google ranking drops
  12. And Google ranking drops means less money. Less money means “angry boss”.
  13. But it gets even worse. In addition to that, it makes cats grumpy
  14. Now it’s time to show you some examples of drops of JavaScript websites in Google.
  15. The first example is Alibaba.com. It hurts me just looking at that!
  16. The second example: Sports.yahoo.com. The blue line - the moment when they implemented infinite scrolling.
  17. Similar example: answers.yahoo.com.
  18. The question arises: can google deal with JavaScript? What is your opinion on that?
  19. I have a good news for you. You all were right! Everything really depends on the situation.
  20. Truth be told, Google is not perfect at rendering JS. It has a lot of limitations.
  21. The default technique of building JS websites is client-side rendering. For sure you know it, but in this technique Google and users have to render a website on their own. it’s commonly a troublemaker. I don’t say: don’t use it. I just say that usually it’s the most problematic.
  22. There is a great news coming from Google from last week. They no longer use Chrome 41, a 4-year-old browser for web rendering. That browser didn’t even fully support ES6!
  23. Rendering is delayed. you have to wait, sometimes even a few weeks till google will be able to render your content. Also, Googlebot is lazy. it may not fetch all JavaScript resources - because of timeuts or just because Google’s algorithms decided not to do so. What is more, it doesn’t scroll nor clicks the button so infinite scroll can be problematic. We will shortly discuss about all of these points in detail.
  24. Google cannot render JS websites just like that! JS rendering is delayed and can be done by Google only when resources become available.
  25. It is perfectly illustrated by the following diagram. There are two waves of indexing in Google. The first is instant (..) The second (rendering) can happen only as resources become available.
  26. Well, Google’s John Mueller comes in handy: “Usually rendering happens in the order of days to a few weeks even”
  27. What is more, Google may not fetch some resources just because its algorithms decide these resources don’t contribute to essential page content. It’s just an algorithm; it can make mistakes, which can lead to a disastrous impact on your presence in Google Search. What if Google decide to just skip you important JSON files presenting products?
  28. What is more, Google may not fetch some resources just because its algorithms decide these resources don’t contribute to essential page content. It’s just an algorithm; it can make mistakes, which can lead to a disastrous impact on your presence in Google Search. What if Google decide to just skip you important JSON files presenting products?
  29. Now we know about Google’s limitations in rendering JavaScript so we can go deeper.
  30. You have to be careful about timeouts. Based on my experience, if a server responds really slowly, Google may skip requesting your JS files and index the content as it is. There are 130 trillion documents awaiting for Googlebot’s visit. This has strong implications: if your server / APIs respond slowly, you risk that Google won’t index content generated by JS and your website will rank low in Google.
  31. The takeaway is clear: always check if Google can render your website.
  32. Let me tell you another story. Angular.io had real JavaScript SEO issues in the past
  33. This is not the end of Angular troubles. Let me share with you another story: As I told you a moment ago, we created an experiment to see if Google can render and index various JavaScript frameworks
  34. The initial result was surprising for us.
  35. It was a total surprise for us. Angular 2 was created by Google and... Google cannot render Angular 2. What the heck?
  36. The reason was simple. the official tutorial of Angular suggested to use the “let” command. Well, in that time it was NOT supported in Google. So Google wasn’t able to render it
  37. Now we know about Google’s limitations in rendering JavaScript so we can go deeper.
  38. Now I gonna show you a quick and easy six steps that let you diagnose your JavaScript website to make sure it’s successful in Google.
  39. The first step you should do is to ensure that Google can render your content. You can use the URL inspection tool, provided by Google for that purpose.0 It’s free It shows rendering errors It’s free It shows a full-page screenshot It shows rendering errors
  40. Ask yourself the following questions: Is the main content visible? Can Google see the user-generated comments? Can Google access areas like similar articles and products? Can Google see other crucial elements of your page?
  41. Ask yourself the following questions: Is the main content visible? Can Google see the user-generated comments? Can Google access areas like similar articles and products? Can Google see other crucial elements of your page?
  42. Question: who of you know what robots.txt is? Ok, I don’t see many people raising their hands.
  43. So let me quickly explain what robots.txt is. It’s a special, plain text file which instruct Googlebot what resources it is able to access. So if you specify in robots.txt that Google shouldn’t access json files, you may be in a trouble.
  44. Google’s URL inspection tool comes to the rescue! It can inform you about all the blocked resources.
  45. Few slides before I told you that when Google encounters JavaScript errors, it may end up with rendering JavaScript. How to spot JavaScript errors that Google encountered? Well, you can use Google’s URL inspection tool for it. It can shows you all the errors that occurred during rendering.
  46. Now we know how to check if Google technically is able to render your website. But did Google actually indexed the content? That’s the most important part. It’s easy to check. Just copy a paragraph or two from your page and...
  47. Also, you should ensure that Google can discover your internal links.
  48. If you followed these 5 steps and it still doesn’t work properly, you may consider implementing dynamic rendering or Isomorphic JS.
  49. They were serving Googlebot no content!
  50. They were serving Googlebot no content!
  51. I struggle with this slide