How to speedup jquery mobile / phonegap?

后端 未结 3 599
臣服心动
臣服心动 2021-01-31 11:43

I have a small web app. Seven pages, 3.6 KB index.html and 855.5 KB total. The only odd thing i have is a database (~500kb) in Javascript with many lines like:

$         


        
3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-31 12:24

    There are a few things you can do:

    1. Get to deviceready faster.
    2. Minimize your JS code using YUI Compressor
    3. Move your script tags to the bottom of the body tag.

    As you've already mentioned you've moved the database out of the equation which was probably taking a bulk of the time on startup.

提交回复
热议问题