Sencha Touch 2.2.0 loads very slowly. Is it normal

2019-04-11 21:04发布

问题:

I am new to Sencha Touch. I have set up page from the examples. However it loads very slowly. Is it normal? What can be done to decrease the load time?

Here is the page http://m.odtu.lu/odtu/

回答1:

As @TDeBailleul said, you need to minify & aggregate project JS files to get it load fast because loading time is directly proportional to number of bytes transferred and number of requests triggered. Sencha Cmd provides the tool to minify & package your app for batter performance using this command :

sencha app build package

Since you are new to Sencha touch, spend good time in understanding Sencha Cmd because it helps you create, compile & bundle your app along with many other useful things



回答2:

First you should get to know Sencha Cmd

The key command you will be using is:

sencha app build production

Pay attention to the configuration steps (especially app.json) to ensure that you won't miss anything.