S
SolidJS•7mo ago
AesthetiCoder

Is solids SEO friendly ?

Analyzing the webpage solid generate in production I get problems whit SEO, the same problem that react has, only the div with id root is render, yes the actual page has content but is not reflected in the html, other times I see that the first render of solid is the empty div and then it add the html after, how can I prevent this to happens
8 Replies
Carere
Carere•7mo ago
If you need SEO you have to Server Render the pages. That's why NextJs, remix, sveltekit, nuxt and SolidStart was created 😉 I did some websites with SolidStart, you can look at the docs it's pretty easy to understand compared to other solutions from other UI framework
AesthetiCoder
AesthetiCoder•7mo ago
Not necessarily you need that, that's why Astro exists, if possible I will like to see a solution for just solid
Carere
Carere•7mo ago
You have SolidStart build by the team behind SolidJS
Atila
Atila•6mo ago
this is not true anymore. most crawlers execute JavaScript. So the fact that an SPA has a blank package with a single div does not mean a crawler can't read it. Maybe some obscure lesser known crawler still can't parse it, but google, bing, duckduckgo, etc... all can. Here's a conference talk by a member of the google SEO team demystifying this and some other facts about SEO: This timestamp is where he addresses the SPA x SEO topic. https://youtu.be/xgyvh9TOdYM?si=Y-HONJ2YV2EvQYdM&t=1027 SSR for content-base apps is more of a performance/resource decision than an SEO at the moment.
tim.js
YouTube
revo.js 2023 - Martin Splitt - No BS SEO for web developers
You did it! You built this great website and now people will come and use it and give you money and life will be wonderful, right? Except that's not how it goes. You either buy ads to point people towards your website or you make sure people who should use it, will find it when searching in a search engine of their choice. And that's where SEO...
Carere
Carere•6mo ago
Well I don't know lot of people betting good SEO with SPA 😅
Atila
Atila•6mo ago
I don't know about people. I'm just saying there's nothing in a SPA preventing you from that. That was your question 😉
Carere
Carere•6mo ago
I think it's dangerous to advise going the SPA route when considering SEO
Atila
Atila•6mo ago
not what I'm doing either. You asked if SolidJS was SEO-friendly and I'm just saying there's no reason to say otherwise. That's all. Everything you need to make your app SEO-friendly is there.