Ancestors

Toot

Written by Joaquín on 2024-10-28 at 12:05

Released initial version of HTTP Client Hints package, check the details here:

@tomayac if you want to check it, I was checking WICG GH repo about HTTP Client Hints...

https://github.com/userquin/http-client-hints

=> More informations about this toot | More toots from userquin@webtoo.ls

Descendants

Written by Joaquín on 2024-10-28 at 12:06

@tomayac Updating my Nuxt module to use this package:

https://github.com/userquin/nuxt-http-client-hints

=> More informations about this toot | More toots from userquin@webtoo.ls

Written by Thomas Steiner :chrome: on 2024-10-29 at 05:58

@userquin Oh, that's neat. What would you say is the advantage over just getting and setting the headers directly (https://web.dev/articles/user-preference-media-features-headers#nodejs_example)? Types probably? Or just convenience?

=> More informations about this toot | More toots from tomayac@toot.cafe

Written by Joaquín on 2024-10-29 at 11:25

@tomayac We need to use those headers values inside a framework (SSR Application, like Nuxt or SvelteKit) to render proper content based on those headers, not just an html page.

For example, using Vuetify with Nuxt + SSR, we need to render the Vuetify Vue components with viewport size and theme in the browser.

=> More informations about this toot | More toots from userquin@webtoo.ls

Written by Joaquín on 2024-10-29 at 11:27

@tomayac We have to deal with hydration problem, some components will run on client and server side and should generate the same "html".

=> More informations about this toot | More toots from userquin@webtoo.ls

Written by Thomas Steiner :chrome: on 2024-10-29 at 14:55

@userquin Gotcha, thanks for the additional context (which might make sense for the README.md as well).

=> More informations about this toot | More toots from tomayac@toot.cafe

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113384957669648183
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
310.398176 milliseconds
Gemini-to-HTML Time
1.68104 milliseconds

This content has been proxied by September (3851b).