These are chat archives for systemjs/systemjs

25th
Feb 2015
Alex
@whitecolor
Feb 25 2015 17:02
@guybedford What do you thinkg about atomaticly loading config file (for example path to it can be in script tag attribute) <script scr="jspm_packages/system.js" config="config.js">?
Guy Bedford
@guybedford
Feb 25 2015 17:45
the latency cost is not worth it
Alex
@whitecolor
Feb 25 2015 17:45
@guybedford What do you mean? can you elaborate?
Guy Bedford
@guybedford
Feb 25 2015 21:55
when you have two scripts together, the browser can request them in parallel. When the config is a data attriubute, it first has to complete loading system before it can load config resulting in extra latency.
Matthew Phillips
@matthewp
Feb 25 2015 21:56
True, but you can't load config.js until system.js is loaded anyways.
it depends on system.js being loaded
wait, aren't <script>s blocking anyways?
Matthew Phillips
@matthewp
Feb 25 2015 22:02
unless you use async
Guy Bedford
@guybedford
Feb 25 2015 22:17
yes they're blocking but the browser can still request them in parallel until execution is ready
that's why the best loading profile is to include es6-module-loader.js manually before system.js
auto-loading is purely dev convenience
Matthew Phillips
@matthewp
Feb 25 2015 22:20
You're going to bundle in production anyways
A module loader is dev convenience :)