Preload images with srcset #148
Closed
vralle
started this conversation in
Show and tell
Replies: 2 comments 1 reply
-
|
Hello @vralle, thank you for the workaround to preload image with attributes such as
|
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Since v4.17.0 the plugin pick up |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
The plugin is powerful and has one undocumented feature. Preload images with
srcset.We can generate img tag with image-minimizer-webpack-plugin using generator.
Example:
The plugin preload configuration.
The example uses a single image file as a source, so here we have to use the output image names that are preconfigured in the image generator.
Output:
All tags are valid and preload works perfect for
srcset.@webdiscus, thank you!
Beta Was this translation helpful? Give feedback.
All reactions