Premise: A complete Sencha touch/Js noob with a Java background – (5 days)
Is it possible to use HTML5 web workers with Sencha Touch? The scenario I have is, I have an app made with Sencha Touch 2 and packaged with phone gap and in one of the scenarios, on clicking a button a controller makes an API call which renders the UI inactive for a little bit – I would ideally like to move this to a secondary thread and keep the UI as responsive as possible, but since JS is single threaded I want to leverage HTML5 webworkers for Sencha touch . I found this plugin but can I use this with Sencha Touch 2 ? If not what are the other options I have. Mind you this is for mobile/tablet dev with Sencha touch and not extJS for desktops.
What I’ve understood from your question is that you want to use webworkers to render UIs, right?
I think it’s impossible because the scope of webworkers is very limited. Here’s the list of things that webworkers can access:
And this is the list of things that webworkers can’t access:
Follows a list of webworkers use cases:
For more informations about webworkers and their enviroment: http://www.html5rocks.com/en/tutorials/workers/basics/
Talking about my extension: I don’t think it goes well for Sencha because it uses Ext structures and classes.
In the end, I don’t know any Sencha UX for webworkers.
UPDATE (2013/03/20)
ExtJS-WebWorker now works for Sencha Touch too!