Reputation: 31
I'm making a schoolproject, a web page. I got a bootstrap example, which had loads of code in it, but most of it is just random unused css/jQuery. And there is loads of duplicates. It's hard to find anything to be honest.
Is there a way to remove unused css/jQuery from the web page automatically? More interested in jQuery removal.
Upvotes: 3
Views: 2597
Reputation: 196
You can remove your unused css using in a gulp environment using gulp-purgecss.
For more explaination, have a look on this DEMO and read it's docs.
Upvotes: 0
Reputation: 1697
To remove unused css code, you have multiple options:
To remove unused js code, you also have multiple options:
ADVANCED_OPTIMIZATIONS
enabled)dead_code
option)Upvotes: 4