Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[imports]: Unify loading and dependency resolution model with ES6 modules (bugzilla: 25715) #188

Closed
hayatoito opened this issue Jul 6, 2015 · 1 comment

Comments

@hayatoito
Copy link
Contributor

Title: [imports]: Unify loading and dependency resolution model with ES6 modules (bugzilla: 25715)

Migrated from: https://www.w3.org/Bugs/Public/show_bug.cgi?id=25715


comment: 0
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=25715#c0
Dimitri Glazkov wrote on 2014-05-14 18:00:41 +0000.


comment: 1
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=25715#c1
Dimitri Glazkov wrote on 2014-05-14 19:06:14 +0000.

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
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=25715#c2
Ian 'Hixie' Hickson wrote on 2014-05-22 22:22:19 +0000.

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
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=25715#c3
Ian 'Hixie' Hickson wrote on 2014-05-22 22:57:38 +0000.

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
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=25715#c4
Ian 'Hixie' Hickson wrote on 2014-09-12 17:37:36 +0000.

Reassigning to dglazkov since he's organising a summit or something for this.

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

No branches or pull requests

2 participants