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

optimization: use client hints for SSR #204

Open
yocontra opened this issue May 8, 2019 · 3 comments
Open

optimization: use client hints for SSR #204

yocontra opened this issue May 8, 2019 · 3 comments

Comments

@yocontra
Copy link
Owner

yocontra commented May 8, 2019

https://developers.google.com/web/updates/2015/09/automating-resource-selection-with-client-hints

We can use these new hint headers to get the actual constraints and use those values on the server instead of making an educated guess then doing a re-render on the client. Any user who enables these hints on their page would be able to benefit from the optimization, otherwise the current method still applies.

Would be a good PR!

@oyeanuj
Copy link

oyeanuj commented Apr 13, 2020

@contra Came here looking for this. Is this on the radar?

@yocontra
Copy link
Owner Author

@oyeanuj Yep - after we take care of #162 which will finalize the SSR API we can do this one.

@yocontra
Copy link
Owner Author

This doesn't seem to have gotten any more browser support since 2020 - no FF or Safari support. For that reason going to backburner this until it gets more adoption.

Also given the spec, this would only work w/ deviceWidth / width queries - which satisfies a lot of use cases but not all.

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