xp-forge / frontend

Web frontends
1 stars 1 forks source link

Compress assets downloaded as dependencies #29

Closed thekid closed 2 years ago

thekid commented 2 years ago

These file types will be compressed, see https://letstalkaboutwebperf.com/en/gzip-brotli-server-config/ and https://www.phpied.com/gzip-your-font-face-files/

If we can deliver the following TrueType font with Brotli compression, the savings will be around 100 kilobytes:

 -rwxr-xr-x  1 timmf timmf    133 Sep 14 21:41 manifest.json
--rwxr-xr-x  1 timmf timmf 164120 Sep 14 21:41 qFda35WCmI96Ajtm83upeyoaX6QPnlo6_PPrOQ.bb5a7dd.ttf
+-rwxr-xr-x  1 timmf timmf 164120 Sep 14 23:06 qFda35WCmI96Ajtm83upeyoaX6QPnlo6_PPrOQ.bb5a7dd.ttf
+-rwxr-xr-x  1 timmf timmf  66810 Sep 14 23:06 qFda35WCmI96Ajtm83upeyoaX6QPnlo6_PPrOQ.bb5a7dd.ttf.br
+-rwxr-xr-x  1 timmf timmf  81367 Sep 14 23:06 qFda35WCmI96Ajtm83upeyoaX6QPnlo6_PPrOQ.bb5a7dd.ttf.gz
thekid commented 2 years ago

Released in https://github.com/xp-forge/frontend/releases/tag/v3.8.0