View Poll Results: Does sencha-touch application takes much loading time due to its js size ?
- Voters
- 2. You may not vote on this poll
-
Yes
2 100.00% -
No
0 0%
-
10 May 2012 4:21 AM #1
Unanswered: Sencha Touch - Peformance issue with senchatouch js size
Unanswered: Sencha Touch - Peformance issue with senchatouch js size
I have build application using sencha touch, its all working fine except issue of initial loding time.
I have make its native app. using phonegap, have build its jsb3 file and app-all.js using that. but its nothing to do with sencha-touch.js, Which has original size of about 2.4 M.B. and its minified is also about 600 K.b. which is very large for mobile/tablet.Is there anything like we can use sencha.js for only those component we are using in app ? or anyother way to reduce size or initial loading time?Please provide me solution for this
-
11 May 2012 10:53 PM #2
Anyone can help me plss ????
Need urgent solution as i stuck due to this problem...
Please help me.....
-
13 May 2012 11:10 PM #3
-
16 May 2012 1:08 PM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
- Answers
- 3157
If you are using MVC, then you can build your app into two JS files, the sencha-touch.js and app.js which will only include what you tell it to include.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
17 May 2012 9:47 PM #5
i am using MVC in my application.
I create jsb file using bellow command
sencha create jsb -a http://localhost/sencha/ecctouch/app.html -p app.jsb3
and build it using bellow command
sencha build -p app.jsb3 -d .
but it generates two files app-all.js and all-classes.js. secnha-touch.js is not generated at all.
do i need to do anything else or any other command ?
-
18 May 2012 4:37 AM #6Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
- Answers
- 3157
sencha-touch.js will not be generated, that file is in the sencha touch directory.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
18 May 2012 4:42 AM #7
if i try to include sencha-touch.js (91 K
then it gives bellow errors:
- [COLOR=red !important]GET http://localhost/sencha/ecctouch/event/Dispatcher.js?_dc=1337340156709 404 (Not Found)[/COLOR]
- [COLOR=red !important]sencha-touch.js:15GET http://localhost/sencha/ecctouch/MessageBox.js?_dc=1337340156709 404 (Not Found)[/COLOR]
- [COLOR=red !important]sencha-touch.js:15GET http://localhost/sencha/ecctouch/event/publisher/Dom.js?_dc=1337340156712 404 (Not Found)[/COLOR]
-
18 May 2012 5:17 AM #8
-
18 May 2012 5:28 AM #9
-
18 May 2012 5:31 AM #10Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
- Answers
- 3157
For Sencha Command it will build app.js in the builds directory. Looks like you aren't using it so app-all.js is what you should use. That and sencha-touch.js
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.


Reply With Quote
