TheInternetIsForThis
Well-Known Member
- Mar 4, 2020
- 1,521
- 3,652
- 428
I believe javascript/html5 game compiling tools call it (or used to refer to it as) minification, and it's a standard step for javascript because as an already slow interpreted language that kind of optimization is incredibly important for performance.I suppose that's code extracted from the online version and not source code directly handed to you so the main explanation is that when you push code to be live before that you make it go through a process that remove any formating not necessary for it to function because a white space, tabulation, end of line are characters that take memory for nothing and need to be parsed and ignore when the code execute, basically waste of memory and process. You may think that's nothing but when you have a lot of them the size change and loading in memory + execution become noticeable. Also it's not because modern computer can ignore such problems that your code shouldn't be optimized when you go into production.