Sencha Touch 2.2.0加载非常缓慢.正常吗 [英] Sencha Touch 2.2.0 loads very slowly. Is it normal?

查看:56
本文介绍了Sencha Touch 2.2.0加载非常缓慢.正常吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Sencha Touch的新手.我已经从示例中设置了页面.但是,它加载非常缓慢.正常吗如何减少加载时间?

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?

这是 http://m.odtu.lu/odtu/

推荐答案

正如@TDeBailleul所说,您需要缩小&聚合项目JS文件以使其快速加载,因为加载时间与传输的字节数和触发的请求数成正比.Sencha Cmd提供了最小化&使用以下命令将您的应用打包以提高击球效果:

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

由于您不熟悉Sencha touch,请花点时间了解Sencha Cmd ,因为它可以帮助您创建,编译和升级.将您的应用程序与许多其他有用的东西捆绑在一起

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

这篇关于Sencha Touch 2.2.0加载非常缓慢.正常吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆