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

Minimize images in documentation automatically #792

Open
JaneJeon opened this issue Apr 10, 2023 · 3 comments
Open

Minimize images in documentation automatically #792

JaneJeon opened this issue Apr 10, 2023 · 3 comments
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@JaneJeon JaneJeon added documentation Improvements or additions to documentation good first issue Good for newcomers labels Apr 10, 2023
@tarnveerSingh
Copy link

Hey @JaneJeon. Can you please explain the issue a little more, what are those images needs to be minimized.?

@JaneJeon
Copy link
Owner Author

Hi, so basically in the front page of the documentation website (https://docs.blink.rest), you'll see some images.

I am planning on adding more images and diagrams to help explain more things - in general - but as I add more images to the documentation, I've been thinking of the impact it would have on the load time.

So I think having docusaurus optimize any and all images (off the top of my head, the ideal is jpeg with ~85% detail ratio) that are included in the documentation websites - automatically, at build time, so that the resulting build has those optimized images without me having to pre-optimize the images myself when I include screenshots and diagrams - would really be conducive to adding more images to the documentation website.

@Bernice55231
Copy link

Hi Jane, I was wondering if you can just change loading inside the img tag to lazy mode, so if you do not scroll to that image, the image will not load immediately. I think that may help you optimize the loading issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants