I've been itching to ask this question: Why, when I open js code from a website online, is the code written all on 1 line? Is this supposed to be some security thing?
Asked
Active
Viewed 31 times
0
-
[Minification](https://en.wikipedia.org/wiki/Minification_(programming)) and/or [obfuscation](https://en.wikipedia.org/wiki/Obfuscation_(software)) – freefaller May 21 '21 at 08:47
-
1Sometimes for reasons of obfuscation, but mostly just saving bandwidth. If you're running a large-scale site, every byte counts. – Robby Cornelissen May 21 '21 at 08:47
-
[https://www.imperva.com/learn/performance/minification/](https://www.imperva.com/learn/performance/minification/) – Andy May 21 '21 at 08:47
-
Very helpful comments. Thank you all for clearing my confusion. I now see the world different. – marcus simmons May 22 '21 at 00:18