[whatwg] [WebWorkers] Advocation to provide the DOM API to the workers

On 11/12/09 10:43 PM, Marius Gundersen wrote:
> A better solution to your problem is to load fragments of the entire
> document using AJAX and then insert those fragments into the main
> document, when they are needed.

This may well be slower than just loading the document and being done 
with it.  In fact, the slow part of the html5 spec single-page load is 
precisely the operation you describe: dom fragments being loaded via 
ajax and sprinkled about.  It's slow in all browsers (e.g. in Safari 
this operation takes about 2x as long as the pageload itself).

> You rarely need to see the entire document at once anyways.

Until you try to do a "find in page"; something that needs to be done 
with depressing regularity for specs.

-Boris

Received on Thursday, 12 November 2009 19:48:15 UTC