Re: exposing CANVAS or something like it to Web Workers

On 5/14/2012 6:08 PM, Boris Zbarsky wrote:
> On 5/14/12 8:58 PM, Charles Pritchard wrote:
>> I agree... Can we get this off the main thread?
>
> "Maybe".
>
> It would be pretty nontrivial in Gecko; last I looked it would be 
> pretty painful in WebKit too.  Can't speak for other UAs.

Can it be pumped through what's essentially an iframe on a null origin?

I don't know enough about browser internals to help on this one.
Yes, loading an SVG image is a heavy call.

For 90% of the SVG content out there, it'd probably be faster to parse 
and draw the SVG via Canvas and JS.
Still it's a hell of a lot nicer to load it via <img> tag.

I'd just assumed that <img src="pic.svg" /> was loaded off-thread / 
async much like <img> calls.

There's nothing that gets carried from the document to the <img> other 
than the width/height, which I believe is carried through.
Which is a good thing, of course.


-Charles

Received on Tuesday, 15 May 2012 01:16:17 UTC