On Tue, 08 Feb 2011 17:06:52 +0100, John Tamplin <[email protected]> wrote:
I am not on the GMail team, but we did see similar issues on the GWT
team -- simply parsing the downloaded script takes a lot of time and
interferes with user interaction with the UI, so as awkward as it seems,
downloading the
script in a comment in the background, and then evaluating it when needed
does provide a better user experience on mobile devices.
See
http://googlecode.blogspot.com/2009/09/gmail-for-mobile-html5-series-reducing.html
for the official blog post about this technique.
So, I think you should consider having download / parse / execute be
separate if you are going to go to the trouble to do anything.
Is there a specific problem with letting Web Workers handle this use case?
They should not interfere with the UI thread.
--
Anne van Kesteren
http://annevankesteren.nl/