4 ms·
> Serious question: are there any tools that can scan a full website for unused code and unused CSS? From my limited knowledge of your situation this seems lik
by seangrogg 9y ago
> Serious question: are there any tools that can scan a full website for unused code and unused CSS?
From my limited knowledge of your situation this seems like the last move to take. I would try the following, in roughly this order:
Serve libraries (Angular, jQuery) from a CDN to at least have the chance of hitting a browser cache on a visitor's first encounter with your site.
Use a minifier to strip all the unnecessary comments and whitespace (in addition to other benefits from minimization).
use gzip to compress the remaining minified files.
Those alone will likely significantly impact your load times. At this point, the remaining dead code should be relatively small and you can look into tools for surgically removing it.