Sencha Touch 2.2.0 loads very slowly. Is it normal?

浪尽此生 提交于 2019-12-21 20:14:52

问题


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.



来源:https://stackoverflow.com/questions/16123743/sencha-touch-2-2-0-loads-very-slowly-is-it-normal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!