268 private links
tl;dr: the issue isn’t the @import rule itself, but that files under 1kb often end up the same size or even bigger when gzipped, so you get no compression benefits.
The experience shows that atomic css files is not optimal.
If the files I was importing were larger, it might make sense. As tiny, modular files? Not so much!
The complete library concatenated and gzipped is less than a single HTTP request. It’s just over 25-percent of the transfer size of sending modular gzipped files instead.
La compression optimale avec 7-zip: 7zz a -snl -t7z -m0=lzma2 -mx=9 -myx=9 -mfb=257 -md=1024m -ms=on -mmt=off archive.7z répertoire
Source code: https://github.com/mmmmaharshi/image-compressor
O_O it performs better than xz
En résumé: 7-zip avec le format d'archive 7z :)
Dernière modif à la lecture de la page: mars 2023.
Pour vos photos:
- limitez les dimensions, un maximum de 2 000 x 2 000 pixels est largement suffisant;
- utilisez le format JPEG (ou AVIF si vous voulez promouvoir le format du futur);
- réglez la qualité à 75 ou moins (35 dans le cas du format AVIF).
Pour des images non-photoréalistes:
- en général vous pouvez réduire encore plus les dimensions que pour les photos;
- utilisez le format PNG.
Je vais jeter un coup d'oeil au format AVIF :)
Le post décrit ensuite certaines définitions, et comment compresser manuellemenet
The files can be put in a directory (automatically created) with the -e
option. So we don't need specific commands (tar, zip, 7z, ...) anymore?
An image compression library in javascript based on the Squoosh tool
Optimizes .mp4, .web and .gif
100% client-side
It reduces the size of SVG, PNG, JPEG, WebP, GIF, and AVIF while also giving you the option to convert to WebP or AVIF.
It optimizes PNG, JPEG, and WebP images
It works with URL too.
Only one image at a time
It optimizes JPEG files by stripping out unnecessary data. But only a single image is uploaded at a time.
It includes about a dozen different settings that let you customize the image quality, size, mime type, and more.
But does not work for images in bulk
Privacy-friendly jpeg optimizer
Convert hundreds of WebP images to JPG/JPEG/PNG/ICO, or any other image formats to WebP in just one click!