31 Jul 2012 9:27 AM #1
Unanswered: Compress the framework
I am using the app builder(terminal) for creating the app package along with SDK. But now when I load the app on my phone, it takes about 60 seconds to load the app. How can I compress the whole framework so that it takes faster to load the app.
31 Jul 2012 9:28 AM #2
Do you use the sencha-touch.js or the debug versions? The regular ones should be minified which should help with the load time.
31 Jul 2012 9:30 AM #3
I am using the SDK package which has sencha-touch.js , sencha-touch-all.js
31 Jul 2012 9:46 AM #4
2 Aug 2012 4:42 AM #5
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Are you using Sencha Command? When you do a build it will minify ST2 and also your application filesMitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
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 firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
28 Dec 2012 3:29 AM #6
i just want to compress the js and css files before i put them in eclipse/phoneGap to make an apk Android file, but no way, i tried Sencha Cmd, went to the Application directory:
D:\Daten\xampp\htdocs\Customer then made a buil.bat file which says: sencha app build
but i get an error:
Sencha Cmd v184.108.40.206
[ERR] Please ensure this command was executed from a valid application
[ERR] Unable to locate 'app.dir' config property from sencha.cfg
I tried it bevor from Architekt but it is not working too, packaging and build is not working though Architekt or directly through Cmd.
I would like to have a complete example or video to explain how to use cmd to compress the application.