View Full Version : How to package touch for production?

1 Dec 2011, 9:37 PM
Hello, I did a search but didn't come up with anything related to packaging a touch 2.0 created web app that is meant to be distributed as a website via UIWebView.

I tried using the SDK tools but have run into a lot of problems are are at a loss at how to package it correctly, or even if the SDK tools can package a touch 2.0 created app in the first place.

I really don't like having to include this 500+kb "sencha-touch-all.js" file. I really need to cut down the size and be able to initially start my basic app's front page (simple page) in < 200 ms.

Please help. :)

2 Dec 2011, 2:12 AM
Quick reply is so damn UX broken in this forum... !!! I always end up clicking the big fat green Reply to Thread button that destroys my answer... GRRRRRRRR !!!!

Anyway, i was saying that you should build a non-sencha loader (like a splash screen) with a nice bg & loader (.gif/css3)... & Then load ST lib & your app.js async (like this http://stackoverflow.com/questions/4631845/asynchronous-javascript-loading-executing).

You could even build some kind of progressbar (by file).

21 Feb 2012, 3:26 AM
did you manage to make a proper production file?
or is the asynchronous trick the only way to have a "fast" startup time ?

21 Feb 2012, 6:33 AM
I use senchatouch with phonegap and was very interested in reducing the starting time of my app on old devices.

I used the technique described here (http://robertdougan.com/posts/packaging-your-sencha-touch-2-application-using-the-sencha-sdk-tools) to create my application production file and it worked !
I take a bit of time to get into the app.jsb3 file but it worth it.

My app is now starting in 13s on an old iPod. it was more than 30sec before !