Skip to content
This repository was archived by the owner on Nov 18, 2024. It is now read-only.
This repository was archived by the owner on Nov 18, 2024. It is now read-only.

Reduce zip file size #401

@t-hamano

Description

@t-hamano

When I removed the files necessary for development from this repository and converted it to a zip file, I found that the file size in my environment was 14.711 MB.

The theme directory does not mention any requirements regarding file size, but the maximum size of a zip file that can actually be uploaded to the theme directory is 10 MB:

https://wordpress.org/themes/upload/

upload

Although there is a file size limit for the theme directory, it seems strange that the default theme exceeds that size.

One approach to reducing the size might be to convert to the AVIF image format proposed in #383.

The /assets/fonts directory (about 8 MB) and /assets/images directory (about 6 MB) take up most of the overall size.

Incidentally, the file sizes when downloading the wordpress-develop theme directory and converting each theme to zip are as follows:

Theme Name Zip File Size
Twenty Twenty-Four 2.896MB
Twenty Twenty-Three 2.160MB
Twenty Twenty-Two 5.818MB
Twenty Twenty-One 2.783MB
Twenty Twenty 1.005MB
Twenty Nineteen 0.620MB
Twenty Seventeen 2.115MB
Twenty Sixteen 1.807MB
Twenty Fifteen 4.230MB
Twenty Fourteen 2.173MB
Twenty Thirteen 1.764MB
Twenty Twelve 1.192MB
Twenty Eleven 1.238MB
Twenty Ten 1.097MB

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Priority] HighUsed to indicate top priority items that need quick attention[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions