How to Prevent Google Analytics Script From Slowing Down Your Website and Ruining your Page Speed Performance Score

The Google Analytics script is heavy and will slow down your website. I have proven this for myself by going to Page Speed Insights and testing websites with and without the script. Many of the recommendations such as using the defer attribute are not helpful. Other recommendations like turning off enhanced measurement by toggling off outbound clicks, site search, video engagement, and file downloads, marginally help but do not solve the problem. ...

Shell Script to Resize Images to be Under a Specific File Size

If you work in web publishing you often need to resize images to be under a specific size, or of a different format, without loosing quality. This zsh script uses ImageMagick to: Convert every image to JPEG or a different image format such as AVIF or WebP Set the width of your images Resize images so that each on is under a specified size (default of 130 KB) Organize your originals into an Originals/ folder and outputs into a Resized/ folder ...