Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Consider overall size of theme directory #150

Closed
Sandstromer opened this issue Oct 22, 2021 · 4 comments
Closed

Consider overall size of theme directory #150

Sandstromer opened this issue Oct 22, 2021 · 4 comments

Comments

@Sandstromer
Copy link

I noticed the latest trunk, the folder size of the theme is now 13MB unzipped, and even zipped this only reduces to 12.7MB.

Some of the assets bundled with the recently added patterns are massive, e.g. the birds.mp4 is 3.4MB and ducks.jpg is 4.72MB

Is there anything that can be done to reduce some of these further?

#132
#139

@kjellr
Copy link
Collaborator

kjellr commented Oct 22, 2021

This is something we can definitely improve. Regardless of whether we end up using WebP, it sounds like that ducks.jpg image is not properly compressed at the moment.

I'm not sure about feasibility for the initial release, but as proposed in #12 and WordPress/gutenberg#35364 I do hope that eventually none of those image/video assets end up being bundled in the theme zip.

This was referenced Oct 25, 2021
@LittleBigThing
Copy link
Contributor

I compressed the rest of the images.
I have not changed the existing file formats, but

but #159 means already a significant reduction in image sizes.

@kjellr
Copy link
Collaborator

kjellr commented Oct 26, 2021

I noticed the latest trunk, the folder size of the theme is now 13MB unzipped, and even zipped this only reduces to 12.7MB.

Just wanted to provide some updated numbers after the recent compression PRs. The theme is now 5.3mb unzipped, and 5.2mb zipped.

@kjellr
Copy link
Collaborator

kjellr commented Jan 24, 2022

As per the comment above, I'm going to close this one for now. If anyone has further thoughts to share on this topic, feel free to open up a new issue on Trac. Thanks!

@kjellr kjellr closed this as completed Jan 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants