Minifying code for PhoneGap App?

后端 未结 5 1279
逝去的感伤
逝去的感伤 2021-02-05 04:08

I am currently starting to build an PhoneGap application, I know the advantages of minifying code for browsers already. However, I was wondering if it was worth minifying my HTM

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-05 04:17

    In general it is not worth minifying PhoneGap application. Minifying is beneficial for web application as it reduces size of each request.

    With PhoneGap all your HTML/JS/CSS will be bundled into application package (which is compressed btw.) and downloaded once on application install. So there won't be any gains in speed.

提交回复
热议问题