[go: nahoru, domu]

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

Add preload prop which renders a preload <link> tag #74

Closed
weotch opened this issue Oct 17, 2023 · 0 comments · Fixed by #76
Closed

Add preload prop which renders a preload <link> tag #74

weotch opened this issue Oct 17, 2023 · 0 comments · Fixed by #76

Comments

@weotch
Copy link
Member
weotch commented Oct 17, 2023

This would be similar to what nuxt/image does here:

https://github.com/nuxt/image/blob/3ec797a55ab99425b55a1247632bc2cac0f662d5/src/runtime/components/nuxt-img.vue#L25-L38

Where it gets a bit more complicated is supporting Visual's srcset and sizes props. Here's how nuxt/image does that:

https://github.com/nuxt/image/blob/3ec797a55ab99425b55a1247632bc2cac0f662d5/src/runtime/components/nuxt-picture.vue#L34-L50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant