seatonjiang / kratos

WordPress theme that focus on reading experience
GNU General Public License v3.0
3.13k stars 613 forks source link

stop inline the bytes of file `iconfont.woff2` as base64 encoded in `data:` url for `iconfont.min.css` #567

Closed n0099 closed 1 year ago

n0099 commented 1 year ago

https://github.com/seatonjiang/kratos/issues/359#issuecomment-820093184 this will reduce its size from 11774 bytes(12KiB) to 2565 bytes(2.6KiB) so the browser will be able to download this font file just after this critical css gets loaded without blocking FCP instead of waiting for the entire css and its inlined font

then save size of 36.29%(from 2565 bytes, 2.6KiB to 1882 bytes, 1.9KiB) by minified the css