Should I minimize and merge JS files for my PhoneGap application?

I understand the rationale for minification, etc., when the code is loaded by the browser, but in my PhoneGap application it will work locally. Does it make sense if all resources are local?

+8
javascript cordova
source share
1 answer

Yes, you still have to make JS mini code. This will not help with network latency, since files are downloaded locally, but optimized code is more quickly analyzed by JavaScript browsers. The faster JS is parsed, the faster your users will be able to use the application.

I would recommend waiting to minimize JS to the last step before releasing your application, because it is very difficult to debug the mini code.

+19
source share

All Articles