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

Some images used within docs are too big #808

Open
1 task done
christian-bromann opened this issue Oct 18, 2021 · 3 comments
Open
1 task done

Some images used within docs are too big #808

christian-bromann opened this issue Oct 18, 2021 · 3 comments

Comments

@christian-bromann
Copy link
Contributor

christian-bromann commented Oct 18, 2021

🐛 Bug Report

Have you read the Contributing Guidelines on issues?

  • Yes

Description

I was looking through the load performance of the app and discovered that some images like this one are quite heavy, e.g. 500+ kb. We should avoid having big screenshots within our docs pages and should pay attention about image file sizes.

To Reproduce

Screenshot 2021-10-18 at 14 21 20

See example this request downloading an image with 513kb.

Expected Behavior

No image should be bigger than 100kb IMHO. Less is better here. I suggest to add a image image optimisation step into the pipeline. It would also be nice if images could be served in modern formats.

Actual Behavior

I haven't looked into all static files but I am sure there are many more that are quite big.

Scripts and configuration needed to reproduce this issue (if applicable)

Your Environment

  • OS:
  • Node version:
  • Docusaurus version:
  • Browser version:
@sauce-doc-bot
Copy link

sauce-doc-bot commented Oct 21, 2021 via email

@sweeneyskirt-sl
Copy link
Contributor

Hi @christian-bromann and @lauramthomas : Just a note on this one with respect to modern formats. It is my understanding that at this time, docusaurus does not support .webp image files, although there is a feature request for it on the docusaurus repo from August 2020 that has not been addressed: facebook/docusaurus#3185
That said, we can certainly look into reducing our image file size as one of our contribution guidelines.

@maxdobeck
Copy link
Contributor

WebP https://developers.google.com/speed/webp
Creating a webp image from an existing image https://developers.google.com/speed/webp/docs/cwebp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants