1 Aug 2009 01:50
Re: scripts, defer, document.write and DOMContentLoaded
On Tue, 21 Jul 2009, Maciej Stachowiak wrote: > On Jul 20, 2009, at 7:30 PM, Boris Zbarsky wrote: > > Ian Hickson wrote: > > > Actually what's going on is more subtle than that. When you set > > > innerHTML, it's actually triggering the deferred scripts right > > > there, if it has them loaded (e.g. inline scripts or cached > > > scripts). If it doesn't have them loaded yet, it drops them on the > > > floor and doesn't ever run them. I've specced this, except that the > > > spec requires that not-yet-loaded scripts be loaded then run, rather > > > than dropped, before innerHTML continues, so there's no race > > > conditions. > > > > Er... wait. So innerHTML has to block on network access? And > > possibly spin the event loop as it does so? > > > > This doesn't seem desirable to me.... Why do we want this behavior? > > innerHTML blocking on network access seems seriously problematic to me. > I don't think blocking the UI is preferable to a race condition, when we > are talking about a compatibility quirk for content doing something > dubious. I've changed the spec to do external deferred src=""ed scripts at the end of document load (blowing away the document as before), and inline deferred scripts as soon as innerHTML is set, if it is set, or else along with other deferred scripts at the end of document load. On Tue, 21 Jul 2009, Boris Zbarsky wrote: > > > > I don't really understand what your proposal would actually translate(Continue reading)
I agree that looping should be seamless, but really we can't even
guarantee that the start of the clip will still be in RAM when you reach
the end, so this is more a quality-of-implementation issue than a spec
issue.
On Wed, 22 Jul 2009, Philip Jägenstedt wrote:
>
> The spec simply says "If the media element has a loop attribute
> specified, then seek to the earliest possible position of the media
> resource and abort these steps." This would give seamless looping if an
RSS Feed