Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do we not just use Minified JS?

I see this word alot "minified" and i never seem to pick a script (ie. from jQuery plugins) that is "minified" but i suppose i should. If i'm right Minified means to remove all unecessary stuff from source code without changing its functionality, so why dont we just have minified source and why bother with the full blown version? Why give people the option?

YOLO

like image 964
benhowdle89 Avatar asked Dec 01 '10 16:12

benhowdle89


2 Answers

When you're debugging, it's a lot easier to have the full source code. It's pretty difficult to debug when it says everything is on line 1 (since everything is usually condensed to just one long line), and an unreadable line 1 for that matter.

I test using the full blown version, and then I minify everything for deployment.

like image 172
munchybunch Avatar answered Oct 13 '22 03:10

munchybunch


the minified version is difficult to understand and debug

like image 42
Daniel Avatar answered Oct 13 '22 05:10

Daniel