🧐 Spiders & Bots love SSR

Bots and crawlers have a thing against single page apps. This is where SSR comes in and why.

🧐 Spiders & Bots love SSR

Server-side rendering has always been React's painful little side thorn. In part, it's because React's existence aims to do one thing and do it well - render stuff quickly and efficiently without giving developers too much of a headache.

While the ideas behind React is great, it also proved to be its Achilles heel - especially when it comes to SEO.

Bots and crawlers have a thing against single page apps.

It's fine if you're just using React to build the app portion.

Things get funky once you start incorporating headless CMS into the mix. Why? Because bugs and bots are made to read HTML - not JavaScript.

But it's 2022 - surely, Google and co. would have figured out how to properly crawl JavaScript by now.

In reality, Google crawlers do render JavaScript to extract links from it. The issue caused by JavaScript is in the lag time between crawling and indexing.

Crawling is the discovery phase whilst indexing is the act of storing and organizing where things rank in the grand scheme of page rankings. When a bot is crawling through a JavaScript SPA, all the internal links are not part of the HTML - so the crawler needs to wait.

Waiting for anything is the bane of efficiency. This is why SPAs struggle with SEO in general because while crawlers are generally patient, there is a thing called a 'crawl budget'. At some point, your crawler is going to give up on your SPA and move on to something else.

This is why there is a resurgence in discussions about SSR - or server-side rendering.

What is server-side rendering?

Think your old school, processed on the server and you get an actual HTML document back kind of set up. But it's not that black and white - and this article explains it quite well.

This 4-part history of the web series also maps out how we got to where we are now.

For those that just want to jump right into it, here's a list of SSR frameworks for JavaScript:

📌 What I'm reading

This week, I started reading Tools of Titans as I find myself getting bored of the usual flow of productivity and motivation content that's recycled ad-nauseam in my feed.

I've seen the title floating around for years but never picked it up until now.

The quick flip-through verdict is this: it's not your typical, feel-good productivity motivation content. It's raw, real, and to the point - summarized into bite-sized interview-esque recaps of people that's done and achieved something.

Overall, I'm liking it since it vibes well with my current state of jumping around content to keep learning and entertained.

Quote of the week

Losers have goals. Winners have systems. - Tim Ferriss, Tools of Titans

Want to sponsor matcha.fyi? You can have your brand featured right here. Let's connect and chat about it.