These are chat archives for systemjs/systemjs

6th
Apr 2015
Bitcollage
@SerkanSipahi
Apr 06 2015 10:39
@guybedford i want to develop a chrome-extensions with systemjs but before i can use it, i have to resolve the url, like this: https://github.com/salsita/chrome-extension-skeleton/blob/legacy/code/js/requireContent.js. My question: What is the best way with systemjs?
Either i set config like this: System.chromeExtension = true; and then in https://github.com/systemjs/systemjs/blob/master/lib/extension-scriptLoader.js to check whether chrome variable its set and resolve the url with chrome.extension.getURL(url) or i create a plugin: import 'someModule' from 'path/toModule!chromeExtension'
Bitcollage
@SerkanSipahi
Apr 06 2015 10:47
It is possible to make this as a feature-branch of systemjs in your development?
If you want i can help you.
Bitcollage
@SerkanSipahi
Apr 06 2015 10:54
I think the first suggestion is better !
Also, System.config.chromeExtension = true; ..., ..., ...
Dave Ackerman
@dmackerman
Apr 06 2015 13:04
hey there! trying to make a "loading" screen but when I do a system.import, it seems to really drag the entire browser down so my SVG animation is choppy. is there a way to avoid this?
(because it's doing a lot of XHRs)
Justin Garfield
@justingarfield
Apr 06 2015 14:01
@dmackerman If the multiple XHRs from a System.import are what's slowing down your animation, you may want to try out SystemJS Buidler and bundle your dependencies into a single bundle to help reduce the amount of calls. jspm also has a similar "bundle" command you can use as well if you prefer working with that. Not sure if it will solve the choppy SVG animation, but worth a shot.
Dave Ackerman
@dmackerman
Apr 06 2015 14:47
@strickn: yeah, but for dev even? we use the bundle for prod.
it takes like 15s to create
oh, i see what you're saying
Justin Garfield
@justingarfield
Apr 06 2015 14:55
@dmackerman Only other thing I could recommend is to try switching over to HTTP/2 SPDY and see if that helps since you wouldn't have to worry about bundles at that point. I've yet to work with SPDY myself though, so I'm not sure how widely supported it is yet or what the level of effort would be to setup that sort of test / environment.
Dave Ackerman
@dmackerman
Apr 06 2015 14:58
isn't http2 just a browser thing? I really know nothing about it
Justin Garfield
@justingarfield
Apr 06 2015 14:58
afaik it's supposed to allow us to open a single stream to load all of our files through vs. multiple XHR's
So would take some server-side changes as well probably, and only some browsers support it last I knew.