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

New tip: Large Blob from Server to Client #38

Open
OliverSpeir opened this issue Mar 23, 2024 · 2 comments
Open

New tip: Large Blob from Server to Client #38

OliverSpeir opened this issue Mar 23, 2024 · 2 comments

Comments

@OliverSpeir
Copy link
Collaborator

Example:
https://stackblitz.com/edit/github-etjsut?file=src%2Fpages%2Findex.astro

@florian-lefebvre
Copy link
Member

Out of curiosity, what advantages does it have over just using it directly? I mean I use this technique for hydration and it's really good but curious about the issue title

@florian-lefebvre florian-lefebvre added question Further information is requested content: tip labels Mar 23, 2024
@OliverSpeir
Copy link
Collaborator Author

We discussed this in discord for anyone reading this

Essentially having it as a script tag allows it to be a progressive enhancement (doesn't break stuff when JS is disabled) and the hydration technique I think could also be fleshed out either in this tip or another tip because at the moment I still don't fully understand exactly how it works.

@OliverSpeir OliverSpeir removed the question Further information is requested label Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants