Skip to content

Make load event comply with the spec #1416

Closed

Description

@jdm

http://www.whatwg.org/specs/web-apps/current-work/multipage/the-end.html#the-end

We need the ability to track resource loads that are fired during the initial parse. It likely makes sense to do this in concert with the BrowserContext implementation (#1417).

Activity

  1. jdm commented on Mar 26, 2014

    @jdm
    MemberAuthor
    <jgraham> It would be nice if it worked in such a way that you could always tell what was blocking the load event to help debugging NSL (never stops loading) type bugs
    
  2. jdm commented on Apr 16, 2014

    @jdm
    MemberAuthor
    • Ensure scripts execute in order encountered during parsing
    • Dispatch DOMContentLoaded once scripts have fired
    • Add a load event blocking mechanism to Document
    • Make network loads initiated during parsing block document load (eg. script, link, img)
    • Make subframe loads initiated during parsing block document load (ie. the enclosing document should not be unblocked until the frame has fired its load event)
    • When parsing is complete, check whether the document load is blocked and fire a load event otherwise. If blocked, then only dispatch the load event when no more blockers remain.
  3. larsbergstrom commented on Apr 21, 2014

    @larsbergstrom
    Contributor

    @jdm is there a set of web platform tests that test these features? :-)

  4. jdm commented on Apr 21, 2014

    @jdm
    MemberAuthor

    Unfortunately the ones that might be applicable seem to involve other unfinished features such as Element.style and inline event handlers (body.onload = ...). We'll probably want to write some simple ones ourselves.

  5. kmcallister commented on Jun 2, 2014

    @kmcallister
    Contributor

    This is heavily tied to #1879 (document lifecycle, incl. new HTML parser)

  6. jdm commented on Jun 2, 2014

    @jdm
    MemberAuthor

    To some degree - I think we can create a separate DocumentLoader object that acts as an interface to the resource task and can be used by the parser and DOM objects.

  7. added this to the milestone on Oct 23, 2014
  8. removed this from the milestone on Jul 19, 2016
  9. nox commented on Jan 20, 2017

    @nox
    Contributor

    I did this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/dom

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions