Does minified javascript improve performance?

后端 未结 8 1716
渐次进展
渐次进展 2020-11-27 05:26

I\'m making an AIR application (so download time doesn\'t have a huge impact), does combining and minifing all the javascript files affect the performance? How would obfusca

8条回答
  •  庸人自扰
    2020-11-27 05:53

    Minifying improves performance for your page overall by decreasing the load time (even if only slightly).

    Neither minifying nor obfuscating alter execution time by any perceivable amount for the vast majority of javascript code out there.

    I do recommend minifying for those reasons and more. Minifying multiple scripts together (like jQuery and it's plugins) can yield even greater savings.

    Edit: As pointed out, on constrained devices and/or with very large codebases minifying could yield a noticeable result.

提交回复
热议问题