3 ms·
I echo what others like @sharkweek are saying - Google has been saying that they index JavaScript for quite a while now. At I/O 2019 they said the crawler shoul
by rayshan 7y ago
I echo what others like @sharkweek are saying - Google has been saying that they index JavaScript for quite a while now. At I/O 2019 they said the crawler should be on the latest Chromium codebase that supports all modern JavaScript features. I built some test cases [0] to see if this is true, and just couldn't get Google to index content inserted via JavaScript. For example, scroll down to the Popover button test case.
Maybe I'm doing something wrong? Open to feedback. Opensourced code is here [1].
[0]https://shan.io/will-it-index/ https://shan.io/will-it-index/
[1]https://github.com/rayshan/rayshan.github.io/tree/master/will-it-index https://github.com/rayshan/rayshan.github.io/tree/master/wil...
- jotto 7y agoI can confirm that they do not parse low ranking JavaScript sites, but they will parse higher ranking JavaScript sites. Bots aside (Twitter and Slack still don't parse JS), it is still in your best interest to server-side render or pre-render a JavaScript site. The time-to-first-paint difference always starts small, but as you add features the JS apps become so bloated you'd be better off starting over with a server-side rendered HTML app. (I am the creator of https://www.prerender.cloud/ https://www.prerender.cloud/)
- rayshan 7y agoThank you! Good point about bots not parsing JavaScript. I find it increasingly important to build and test structured data so users sharing the content within these walled gardens will have a good experience.