Replies: 1 comment
-
I am aware this legacy plugin is not ideal but it's not my top priority to improve it atm, considering users can create their own plugins in userland. If you want to work on a better image plugin for Docusaurus, you are welcome, and we might consider to make it the official one if it's proven successful |
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
-
The current image implementation
plugin-ideal-image
looks not very ideal to me. The created html output is not using very powerful features like thesrcset
artribute forimg
tags. I think there might be potential in usingnextjs
sImage
component also for docusaurus and dropping the currently used dependency toreact-ideal-image
(or better the fork of the fork of the fork of it...).Important features the new component should have:
loading="lazy"
srcset
srcset
which has just one blurhash and replace that when the image is in the viewport with the "real"srcset
.width
andheight
correctly based on the input image.Beta Was this translation helpful? Give feedback.
All reactions