Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explanation of what Blade fallback means #39

Open
jitterbux opened this issue Feb 24, 2023 · 3 comments
Open

Explanation of what Blade fallback means #39

jitterbux opened this issue Feb 24, 2023 · 3 comments

Comments

@jitterbux
Copy link

jitterbux commented Feb 24, 2023

Hi, I am kind of lost about what "Blade fallback" here https://splade.dev/docs/ssr .

You say: "Of course, you should always prefer the rendered content by the SSR server, but it’s nice to have a fallback. This way, search engine crawlers won’t index an empty page."

Can you explain it a bit more in the docs. The current wording is kind of "mysterious" ;). I know that the missing html tags and only one div app tag instead are bad for SEO. But I have no clue what is the difference between SSR by node and SSR by "fallback" Blade - because both are sending js files and not whole html files, when you click around on links, right?

Is blade ssr slower, more CPU intensive or just "some other way" bad? What aren't we using just Blade SSR rendering instead of node SSR rendering?

I have tried it and with the Blade fallback the file that with SSR enabled (node bootstrap/ssr/ssr.mjs and SPLADE_SSR_ENABLED=true in the .env file) had 71 kB . The same file with SPLADE_SSR_ENABLED=false in the .env file) had 74 kB.

But I am not sure what is different.

@jitterbux jitterbux changed the title Explanation of what Blade fallback mean Explanation of what Blade fallback means Feb 24, 2023
@jitterbux
Copy link
Author

I am in a situation when I would like to use Splade for one of my projects but there is not node installed so I can just basically use FTP.

In that situation, would the fallback blade SSR rendering be ok? What would I lose? Basically what is the difference between SSR by Node/Vite and SSR by Laravel/Blade?

Thank in advance for explanation.

@jitterbux
Copy link
Author

Is the difference only in speed/performance? Meaning Vite is faster than Blade at making html pages? Can you somehow explain that a bit if possible? Thank you in advance.

@mariolucasdev
Copy link

I am also interested in this explanation. I have a speculation, but I would like to know too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants