This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25715 - [imports]: Unify loading and dependency resolution model with ES6 modules
Summary: [imports]: Unify loading and dependency resolution model with ES6 modules
Status: RESOLVED MOVED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Dimitri Glazkov
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 17842 20683 25378 25943 26546
  Show dependency treegraph
 
Reported: 2014-05-14 18:00 UTC by Dimitri Glazkov
Modified: 2015-07-06 08:18 UTC (History)
10 users (show)

See Also:


Attachments

Description Dimitri Glazkov 2014-05-14 18:00:41 UTC

    
Comment 1 Dimitri Glazkov 2014-05-14 19:06:14 UTC
Will start digging into https://people.mozilla.org/~jorendorff/es6-draft.html#sec-runtime-semantics-loader-state.

It's nice and dense. Any help/guidance would be appreciated :)
Comment 2 Ian 'Hixie' Hickson 2014-05-22 22:22:19 UTC
We should deal with this sooner rather than later because I'm about to add my own dependency system to HTML for <script needs> and so on. I _really_ don't want us to end up with three separate systems...
Comment 3 Ian 'Hixie' Hickson 2014-05-22 22:57:38 UTC
I think what might make the most sense is for HTML to define the dependency fetching system, including things like delaying loads until something needs the dependency, precaching, deferring, etc, whether loads should block other scripts from executing, whether to early-execute or late-execute when there's a dependency chain, etc, and for the JS module system to just have hooks that HTML bootstraps into this system. (We're going to need to have hooks anyway for actually fetching things over HTTP.)

In the case of modules in particular, having all this would allow us to hook modules into the dependency tree before actually fetching any files, so that they could be lazily loaded without requiring multiple round-trips to fetch all the dependencies once they _are_ needed.
Comment 4 Ian 'Hixie' Hickson 2014-09-12 17:37:36 UTC
Reassigning to dglazkov since he's organising a summit or something for this.
Comment 5 Hayato Ito 2015-07-06 08:18:13 UTC
Moved to https://github.com/w3c/webcomponents/issues/188