If you control the deploying process and the web server (at least with Nginx), you can disable gzip for the small files (like the article has), and avoid on-the-fly compressing for the larger files.
location /js/small {
gzip off;
}
location /js/ {
gzip on;
# Use the .gz file if it exists
gzip_static on;
}