This "simple trick" is nothing very special: it's our good old friend gzip
. However, not all static website hosts automatically compress and serve your website and assets. This may inadvertently result in larger-than-necessry file sizes when creating and publishing your static websites on hosts such as Gitlab Pages, Github Pages, or Netlify. As such, we need to manually compress the files as part of our website build step.
Shrink Your Static Website Size by 10x With This Simple Trick (gzip)!
· 3 min read