Leaving unminified JavaScript & CSS on server
-
Hello. This is an unusual one. I just signed up to semrush for a free trial, and after spidering my site SEMrush has warned me that over 5000 JavaScript and CSS files are NOT minified. This is despite me having them minified using SG optimiser.
I’ve exchanged several emails with SEMrush but unfortunately they seem more interested in defending their warning, which I, after initial concern and investigation believe to be erroneous and unnecessary.
It seems that when SG optimiser minifies JavaScript and CSS files it leaves them all on the server, but creates duplicate copies with an identifying “.min” appended to the file extension. e.g.-
responsive-menus.js
responsive-menus.min.jsIf you open the first file it is the original file full of spaces. But if you open the second file there is a notice saying this file is auto-generated. The contents are then displayed all on one line.
Now I know my website is very well minified because I score 99 on Google’s page speed page (desktop). The problem is I’ve been essentially arguing with support at SEMrush who keep insisting that the warnings are perfectly valid, and I have thousands of unminified JavaScript and CSS files on my site, which they claim is potentially damaging. They’ve even said that Google will see them when it crawls.
My position has been that surely Google doesn’t remotely care about unminified files and is only crawling files looking for content to display in Serps? And surely Google only does its page speed test by actually rendering pages, which SG optimiser ensures are all served using the minified files?
However, they have been quite insistent that their tool is right to warn me of these files and warn me they are unminified even those far as I can see they are never actually used whilst ever minification is selected on SG optimiser? But it’s got me thinking I should at least doublecheck?
Andy
- The topic ‘Leaving unminified JavaScript & CSS on server’ is closed to new replies.