I
I
InqSEO2015-11-09 14:37:19
JavaScript
InqSEO, 2015-11-09 14:37:19

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

3 answer(s)
A
Alexander Taratin, 2015-11-09
@Taraflex

https://developers.google.com/closure/compiler/

V
Vladislav Kopylov, 2015-11-09
@kopylov_vlad

prettydiff.com Function - Minify and all code will be in one line

K
Konstantin Kitmanov, 2015-11-09
@k12th

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 question

Ask a Question

731 491 924 answers to any question