funkhaus / fuxt

A complete Headless WordPress tech stack built on Nuxt.
223 stars 28 forks source link

WP-image to allow preload prop #32

Open drewbaker opened 2 years ago

drewbaker commented 2 years ago

Would be great to have a preload prop on wp-image that does this: https://web.dev/preload-responsive-images/

Should be false by default.

izzygld commented 2 years ago

perhaps we should look at nuxt-image to take car of the speed/sizing and breakpoints.

drewbaker commented 2 years ago

Yeah I've seen that module, it's an interesting idea. I'd need to investigate how best to use that with WordPress serving the images. Probably just give it the full file URL and let the nuxt-img component handle everything else.

wp-image does a lot of other things too (captions, videos) so I'd have to figure out how to play well with that too.