Closed jbergstroem closed 1 year ago
They use Hugo which also supports image optimisation. But Cloudflare images is also a plus.
Addressed in some areas by https://github.com/cloudflare/cloudflare-docs/pull/8423 (and will be fully addressed in future PRs).
Thanks for the suggestion, @jbergstroem!
Example URL(s)
This applies site-wide.
While reviewing pagespeed insights, one low hanging fruit seems to be optimizing most images. This can be done a few ways:
<picture>
to serve more relevant versions of said imageThere's also other small quick wins, specific to images:
defer
I did a small experiment of using lossless optimization via imageoptim locally. It shaved about 30% of the file-size across all images. See below.
Actual Behavior
Before running imageoptim on ~950 files:
Expected Behavior
After running imageoptim on ~950 files:
Additional information
This could also be incorporated into a github action (pngcrush or similar) to keep all changed images in check.