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

Are ES6 modules in browsers going to get loaded level-by-level? #27

Closed
Wizek opened this Issue Mar 21, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@Wizek

Wizek commented Mar 21, 2015

Not sure if this is a good place to ask this question. If not, I'm sorry for the noise. Could you then point me elsewhere perhaps?

I've just read this post here: http://www.2ality.com/2014/09/es6-modules-final.html
Which claims that the module system will support both sync and async loading. Which I like. But it made me wonder if/how well async loading would work for deeper dependency trees. E.g. if I had a project with 20 level deep dependency tree (at its deepest point) and my server would take on average 200ms to respond, then it would take about 4000ms minimum to execute any/all of my scripts, right? Or is there something I am missing?

If I interpret the situation correctly, what is the conceptual response to this scenario? Try to limit the tree depth? Concat everything just like it happens often with ES5? Something else?

@fkling

This comment has been minimized.

Show comment
Hide comment
@fkling

fkling Mar 21, 2015

Contributor

https://esdiscuss.org/ might be a better place to ask this.

Contributor

fkling commented Mar 21, 2015

https://esdiscuss.org/ might be a better place to ask this.

@domenic domenic closed this Mar 25, 2015

@domenic

This comment has been minimized.

Show comment
Hide comment
@domenic

domenic Mar 25, 2015

Member

Yep, best on the mailing list :)

Member

domenic commented Mar 25, 2015

Yep, best on the mailing list :)

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