-
Notifications
You must be signed in to change notification settings - Fork 64
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
Add prop to output preload tag #805
Comments
It may be easier to hook into this: https://www.npmjs.com/package/lazysizes |
Hey @nathanaelphilip, actually I think this could be a great idea! I'll bring it up with the team and see if we can add this to the roadmap 👍 For now, you could potentially use the |
@frederickfogerty was there any discussion with your team to add this feature? It'd be super helpful for us. We've looked into trying to use buildUrl, but it hasn't really helped. |
Hey @jamiechong, I am no longer an engineer at @imgix, please contact either @sherwinski or @luqven instead |
@sherwinski or @luqven care to reopen this ticket? |
Hey @jamiechong, I'm happy to re-open this and discuss with the team what a solution could look like. I can't guarantee a timeline right now but it is noted in our backlog for further investigation. |
Hey @nathanaelphilip, I wanted to quickly pick this issue back up. I think this could lead to some great DX for folks who really care about loading background images as eagerly as possible. I'd love to chat more about how this could work and what it should look like. Did you have a strong preference for how this should get implemented? I was thinking we just add the |
hi @luqven ; it’s been a while but I think you would just need to add a |
Wouldn't this work only if the app is server side rendered though? Because otherwise, it would start loading it when the real image gets rendered. There won't be any benefits I guess. |
It’d be nice to have a prop that outputs these preload links automatically as outlined here: https://web.dev/optimize-lcp/?utm_source=lighthouse&utm_medium=unknown#preload-important-resources
The text was updated successfully, but these errors were encountered: