how to make javascript websites successful in google?€¦ · poor javascript seo = google ranking...

105
How to Make JavaScript Websites Successful in Google?

Upload: others

Post on 26-Jun-2020

21 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

How to MakeJavaScript Websites

Successful in Google?

Page 2: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

A few words about myself

Page 3: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

I’m an SEO guy. I am notyour enemy ;)

Page 4: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

I like programming

Page 5: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

With my colleagues:

We have literally spentyears on:

Maria Cieślak

Bartosz Góralewicz

- researching the JavaScriptSEO thing

Page 6: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

With my colleagues:

We have literally spentyears on:

Maria Cieślak

Bartosz Góralewicz

- researching the JavaScriptSEO thing

- helping multiple clients toensure their JS websites rank high in Google

Page 7: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

My Ultimate Guideto JavaScript SEO

was extremely viral

Page 8: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

So...

Page 9: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Client: This is our website.We don’t rank in Google.

Can you guyshelp us?

Page 10: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

We will help you.

Page 11: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

A JavaScript loader was the bad guy.

Finally, we spotted the issue!

LOADING...

Page 12: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Now they aresuccessful in Google!

Page 13: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

We need togo deeper

Page 14: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Then we startedresearching

The JavaScript SEO topic

Page 15: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Yo!Here is a list of simple Hello World Projects utilising different JS frameworks used for JS crawling tests

JSSEO.expertexperiment

Page 16: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

“But I am a developer.Why should I care about traffic

from Google?”

Page 17: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

“But I am a developer.Why should I care about traffic

from Google?”

● Traffic from Google = Money

Page 18: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

We SHOULD care about traffic from Google. It’s REAL.

● Traffic from Google = Money● Poor JavaScript SEO = Google Ranking Drops

Page 19: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

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

Page 20: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

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

Page 21: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

A few examplesof famous JavaScriptwebsite dropsin Google

Page 22: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Example #1

Page 23: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Example #2

sports.yahoo.com

Page 24: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Example #3

answers.yahoo.com

Page 25: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

The question...

Page 26: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

The answer...

Page 27: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

What if I told youthat Google’s not perfectat rendering JS?

Page 28: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

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

Page 29: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Yes… Recently, Google did a really good job with updating their Web Rendering

ServiceBEFORE 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...

Page 30: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

…Google is stillnot perfectat rendering JavaScript

Page 31: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Renderingis DELAYED

Google is still not perfect at rendering JavaScript

Page 32: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Google crawls JavaScript websites

much slower than HTML Pages

Page 33: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Two wavesof indexing

Page 34: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

But how longdo you HAVE to wait?Google’s John Mueller:“...usually it’s on theorder of days to a fewweeks even.”

Page 35: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Renderingis DELAYEDLazy - may not

fetch all resources

Google is still not perfect at rendering JavaScript

Page 36: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

The risk: Google may decide not to fetch some JavaScript resources

Page 37: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

The Risk: Google may decide not to fetch some JavaScript resources

I think weDON’T needto download this JSON file

Page 38: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Renderingis DELAYED

Googlebot doesn’t

act like a real user.

Lazy - may not

fetch all resources

Google is still not perfect at rendering JavaScript

Page 39: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Googlebot doesn’t act like a real user

It doesn’t click the buttons

It doesn’t scroll!

Watch out for your infinite scrolling!

Page 40: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

There are still many websites that implement infinite scrolling

incorrectly...

In the case of these websites Googlebot cannot access the second page of pagination.

Page 41: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Timeouts

Renderingis DELAYED

Doesn’t scroll

or click

the buttons

Lazy - may not

fetch all resources

Google is still not perfect at rendering JavaScript

Page 42: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Google’s rendering

of JavaScript is not perfect

TIMEOUTS

Page 43: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Google limits:

TIMEOUTS

Remember: There are 130 trillion

other documents waiting for

Googlebot’s visit

Page 44: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Googlebot is based on the newest version of Chrome. BUT it’s not the same!

● Googlebot declines user permission requests

● Cookies, local& session storageare cleared acrosspage loads

● Browser alwaysdownload all theresources

For instance:

Googlebot may not...

Page 45: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Always check ifGoogle has no issues with renderingyour website

Best tool: URL Inspection Tool (a part of Google Search Console). Avoid using Chrome for it.

Page 46: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Google’s rendering errors may be a big deal

Google encountersrendering errors

Google stops executing JavaScript

No contentindexed

Nomoney

Page 47: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Angular.io had JavaScript SEOissues in the past

Page 48: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

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

Page 49: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Let’s go back to our experiment...

JSSEO.expert

Page 50: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Initial results:Google DOESN’T support Angular 2

Page 51: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Initial results:Google DOESN’T support Angular 2

BUTWHY?!

Page 52: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Google didn’t index our Angular experiment because of...errors in theofficial Angulardocumentation

Page 53: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Now we know about Google’slimitations in

rendering JavaScript

Page 54: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

JavaScript SEO

Taming the Beast

in 5 Easy Steps

Page 55: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Step 1Ensure that Google can render your content

Use the URL inspection tool provided by Google

● It’s free

Page 56: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Step 1Ensure that Google can render your content

Use the URL inspection tool provided by Google

● It’s free

● It shows rendering errors

Page 57: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Ask yourself the following questions

? ?? ?

Page 58: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Ask yourself the following questions

● Is the main content visible?

Page 59: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Ask yourself the following questions

● Is the main content visible?● Can Google see the

user-generated comments?

Page 60: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

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?

Page 61: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

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?

Page 62: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

What if Google cannot render your page properly?

Here are some possible reasons:● Google encountered

timeouts while rendering

Page 63: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

What if Google cannot render your page properly?

● Some errors occurred while rendering

Here are some possible reasons:● Google encountered

timeouts while rendering

Page 64: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

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

Page 65: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Step 2Make sure you didn’t block your

crucial JavaScript files in robots.txt

What is robots.txt?

Page 66: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

robots.txt

Page 67: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Step 2Make sure you didn’t block your crucial JavaScript files in robots.txt

Google’s URL inspectiontool comes to the rescue!

Page 68: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Step 3Use the URL Inspection tool for spotting JavaScript errors

Page 69: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Step 4Check if your content hasbeen indexed in Google

How do you knowif content is reallyindexed in Google?

Page 70: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Step 4Check if your content has been indexedin Google

site:URL “fragment”

Page 71: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Step 5 Make sure Google can discover your internal links

Google needs proper <a href> links to discover the URLs on your website

Page 72: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

If you followedthese 5 stepsand it still doesn’t work...

Page 73: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Consider dynamic rendering or hybrid rendering

Example Recommended by

Dynamic rendering YouTube

Hybrid rendering

(also called “universal JS”

or “isomorphic JS”)

Airbnb

Page 74: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

First option: Use dynamic rendering

USERS

SERVER

RENDERERGooglebot

Initial HTML+JS

Static HTMLBUT a static version

for Googlebot

● Serving an interactiveversion for users

Page 75: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

First option: Use dynamic rendering

Officially recommendedby Google for rapidlychanging websites

Page 76: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Most populardynamic rendering solutions

Renderton Free

Page 77: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Most populardynamic rendering solutions

Renderton

Puppeteer

Free

Free

Page 78: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Most populardynamic rendering solutions

Renderton

Puppeteer

Prerender.io

Free

Free

Service/Free

Page 79: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

But dynamic rendering is not a silver bullet

Page 80: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Disqus.com

Page 81: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

What went wrong?

Page 82: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

We informed Disqus

about the issue

Page 83: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Second option:

Hybrid renderingHow it works

Initial, server-side rendered HTML is sent to users and search engines.

Then JavaScript is loaded on top of that.

Page 84: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Hybrid rendering?Which brands use

Page 85: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

If you use

for hybrid rendering

...try

Page 86: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Next.js is the next...

BIG thing

Page 87: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy
Page 88: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

The State of JS 2018 Survey:35% of developers heard of Next.js

and want to learn it.

Page 89: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

It’s activelymaintained

Page 90: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Friends of Next.js

Vue.js Angular

Page 91: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

So manychoices...

Page 92: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Relatively static website

Dynamic website

You can consider Client-side rendering

● Hybrid rendering, or● Dynamic rendering

Page 93: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

It’s not only about Google!

Other search engines struggle with JavaScript.

Facebook, Twitter

THE SAME!

Page 94: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Technically, Bing can render JavaScript.

But struggles with rendering JavaScript at scale

Page 95: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Bing struggles with renderingJavaScript at scale

Page 96: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Bing struggles with renderingJavaScript at scale

Page 97: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Can Bing index the content of Angular.io?

No!

Page 98: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Bing struggles with renderingJavaScript at scale

Can Bing index the content of Vimeo?

Page 99: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Can Bing index the content of Vimeo?

No!

Page 100: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Let’s talk about... Twitter

Page 101: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Really?Angular.io is doing fine on Twitter

Page 102: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Angular.io is NOT doing fine on Twitter

Vue.js is doing MUCH better.

Page 103: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

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)

Page 104: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Worth reading

● Ultimate Guide to JavaScript SEOhttps://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ślakhttps://searchengineland.com/how-to-prepare-for-a-js-migration-308795

Page 105: How to Make JavaScript Websites Successful in Google?€¦ · Poor JavaScript SEO = Google Ranking Drops Google Ranking Drops = Less money = Angry boss...and it makes cats grumpy

Thank you,everyone!

@TomekRudzki

/tomasz-rudzki