Re: loadedmetadata and layout

Ian Hickson wrote:
> On Mon, 24 Aug 2009, Boris Zbarsky wrote:
>>> This is already implicitly required. The loadedmetadata event is 
>>> queued from a task, therefore the event loop must spin at least once 
>>> for the event to be fired. The penultimate step of the event loop is 
>>> "If necessary, update the rendering or user interface of any Document 
>>> or browsing context to reflect the current state".
>> I'm not sure what this means in practice...  Does this require painting 
>> to happen, or just pending updates to be flushed?
> Just the latter.

OK, great.  That wasn't at all clear.  ;)

> There's no difference from a spec point of view.

There sort of is; you can detect the difference from user script in some 
cases (e.g. some algorithms are O(N) with one approach and O(N^2) with 
the other).

But I agree that in terms of code flow and final painted bitmap there 
should be no difference.


Received on Monday, 31 August 2009 12:57:45 UTC