W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2009

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

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 12 Nov 2009 22:48:15 -0500
Message-ID: <4AFCD6FF.6030007@mit.edu>
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.

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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:19 UTC