[whatwg] Proposal for separating script downloads and execution

Anne van Kesteren annevk at opera.com
Tue Feb 8 08:10:22 PST 2011


On Tue, 08 Feb 2011 17:06:52 +0100, John Tamplin <jat at google.com> 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/



More information about the whatwg mailing list