fuxt icon indicating copy to clipboard operation
fuxt copied to clipboard

WP-image to allow preload prop

Open drewbaker opened this issue 4 years ago • 2 comments
trafficstars

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.

drewbaker avatar Nov 12 '21 07:11 drewbaker

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

izzygld avatar Nov 15 '21 07:11 izzygld

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.

drewbaker avatar Nov 15 '21 22:11 drewbaker