I am trying to write a PhoneGap/Cordova app.
I am trying to do some of the more long running background stuff in Web Workers. However I am finding that some of the funct
I would imaging that you could pass those to the worker with message. Something like suggested in here:
javascript web workers - how do I pass arguments?
As for the sql-lite db you should be able to initialize a connection lib from within a worker script much the same way you would your main script.
I realize this answer may not be bounty worthy but may get you started in the right direction