-
Notifications
You must be signed in to change notification settings - Fork 5
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
The bonita-doc branches store too large gif files #788
Comments
Some work has been recently done especially in the Here is the size of the site for commit 968e146 deployed with https://github.com/bonitasoft/bonita-documentation-site/actions/runs/12667319289/job/35300446290 on 2025-01-08 10:05 GMT+1
The size for bonita is now 664M compared to 834M on 2024-09-18: decrease of 170M 🎉 |
Today, we delete all unused images on the documentation site, for supported and out-of-support version.
The size for Bonita is now 647M instead of 664M yesterday 🎉 |
The getting started tutorial stores a lot of gif which are very large. Large images have a negative impact on the content display especially on mobile. This may also have a negative impact on the SEO as the load time of the related pages is bad.
In addition, as the files are duplicated from versions to versions, this increase the overall size of the documentation site.
Gifs have been compressed with tools, but as this is not a very efficient format and videos last quite a long time, we still have a lot of large files.
Possible solutions
Long term solutions
Short term solutions
Overall analysis of the bonita content size per version
2023-01-09
#434 (comment)
2024-09-18
https://github.com/bonitasoft/bonita-documentation-site/actions/runs/10879468775/job/30184228599 Push to Prod on Mon, 16 Sep 2024 07:38:41 GMT
Details
List of images in bonita 2022.2 larger than 50kB
Analysis done on commit: https://github.com/bonitasoft/bonita-doc/tree/dd90fecedf2847fa2e3383d26425ef6a0bcb33d5
Command from the repository root:
$ find . -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" -o -iname "*.gif" \) -size +50k -exec ls -lh {} + | awk '{ print $9 ": " $5 }' | sort -k2 -hr
--> 18 Gifs larger that 926Kb
Command:
find . -type f -iname "*.gif" -exec du -ch {} + | grep total$
List of files larger than 50kB
List of images in bonita 2024.3 larger than 50kB
Analysis done on commit: https://github.com/bonitasoft/bonita-doc/tree/59b06d4ec2684e54ca6a5b52f153c82ddc504b5b
Command from the repository root:
$ find . -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" -o -iname "*.gif" \) -size +50k -exec ls -lh {} + | awk '{ print $9 ": " $5 }' | sort -k2 -hr
--> 19 Gifs larger that 926Kb
⚠️ Most problematic files is ./modules/applications/assets/images/ui-builder/guides/localize-your-app.gif: 36M 😱
[UPDATE 2024-10-02]: removed in https://github.com/bonitasoft/bonita-doc/pull/2867/files
Details
The text was updated successfully, but these errors were encountered: