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
@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
@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
@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
@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
@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 This content has been proxied by September (3851b).Proxy Information
text/gemini