Javascript Performance And Minification
Solution 1:
You'll have a smaller file to load into memory for parsing, but the gains would be minuscule on a modern computer. You are likely better off with easy production debugging and a simpler build process.
Solution 2:
It should, but probably not by much.
Why not profile both ways and see the actual gains? That's the only real way to know.
Solution 3:
Yes, there will be a (most likely tiny) improvement in parsing speed from having fewer characters to parse, but the code will not run any faster.
Solution 4:
Minification is to primarily save load time and bandwidth, so in that regard it would help immensely. I can't imagine you'd see any real difference in performance unless you are really running very intense code. The large fruit here is script size, any performance gain is just icing on the cake.
Post a Comment for "Javascript Performance And Minification"