DEV Community

Discussion on: Is Preact SEO friendly?

Collapse
 
benbot profile image
Benjamin Botwin • Edited

For Your site to take advantage of SEO techniques your pages would have to be server side rendered. This is because webcrawlers wont execute all of the arbitrary JS on your pages, so they rely on those pre-rendered pages to learn about your site and rank it accordingly. This is true for any non static site, regardless of the framework being used.

Every page doesn’t need SSR, however. Usually only your public pages, that is, pages that are accessible without being logged in or anything like that, need to be crawled and thus need to be server side rendered.

Collapse
 
mt3o profile image
mt3o

For some time, Google says they don't require SSR to crawl the site. What your saying is in general true, but it's false for Google.

Collapse
 
benbot profile image
Benjamin Botwin

Oh wow, I didn’t know that.
Still I’d say it’s good practice to SSR pages that you want to be crawled. Not every uses (or can use) Google

Thread Thread
 
mt3o profile image
mt3o

Whether or not they can use Google, it's a separate topic. That fraction of users in China - I'd say you can ignore them, unless you are targeting just the Chinese market. However the other way around relationship remains true, even if you target Chinese market, pay attention to Google because they set the standards.
Today even legacy enterprise search engines like IDOL crawl js-heavy websites by changing few switches in the connector.

Regarding SSR, it gives more benefits to the user, not the search engine, as the user can get the contents faster, in 1 request, not multiple (one to get html, another to get js, and another to get the data).