Answer the question
In order to leave comments, you need to log in
How to quickly remove unnecessary JS code?
Good afternoon.
Tell me what tool you can use to clean up the code of a JS file in order to minimize its size and get rid of unnecessary functionality.
For example, there is a file: iprodev.com/icarousel/js/raphael-min.js
I have already removed 70% of the code manually and the carousel is fully functional. However, this is very time consuming.
Perhaps there are tools in which the code used is visually highlighted, and the excess can be visually removed.
Answer the question
In order to leave comments, you need to log in
prettydiff.com Function - Minify and all code will be in one line
WebStorm highlights unused entities.
But in general, they said correctly, in the case of a third-party one, just compress it with a minifier.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question