The Ultimate Guide To JavaScript SEO (2020 Edition) - Onely Blog
The Ultimate Guide To JavaScript SEO (2020 Edition) - Onely Blog
But what can JavaScript do, exactly? And how can you
check which elements of your website are using it? Read on
and you’ll find out.
JavaScript is an extremely popular programming language.
It’s used by developers to make websites interactive.
In other words, you can build a website using only HTML and
CSS, but JavaScript is what makes it dynamic and
interactive.
1. Use WWJD
Using our tool is not the only way to check your website’s
JavaScript dependency. You can also use a browser plugin
like Quick JavaScript Switcher on Chrome, or JavaScript
Switch on Firefox.
When you use the plugin, the page you’re currently on will
be reloaded with JavaScript disabled.
If some of the elements on the page disappear, it means that
they were generated by JavaScript.
You can see the initial HTML of your page by simply right-
clicking -> View page source.
chapter 2
But what about Google and other search engines? Can they
easily deal with JavaScript, or is it more of a love-hate
relationship?
chapter 3
If you want to dive deeper, you can also take a look at the
HTML tab within the generated report.
Here, you can see the DOM – the rendered code, which
represents the state of your page after rendering.
Then click View crawled page. This will show you the code of
your page that is indexed in Google.
chapter 4
1. Server-Side Rendering
Framework Solution
React Next.js, Gatsby
Angular Angular Universal
Vue.js Nuxt.js
Prerender.io
Puppeteer
Rendertron
Not convinced?
Let’s see how links to Angular.io and Vue.js look when you
share them on Twitter:
Angular.io is the second most popular JavaScript framework.
Unfortunately for them, Twitter doesn’t render JavaScript,
and therefore it can’t pick up the Twitter cards markup that
are generated by JavaScript.
chapter 5
If you still are not sure if Google can pick up your links, check
out this slide from the Google I/O conference in 2018:
Important note:
chapter 6