These are chat archives for systemjs/systemjs

24th
Aug 2015
Peter Müller
@Munter
Aug 24 2015 14:03
@guybedford We've switched systemjs on by default in development as part of our migration from requirejs. Ye gods, it's slow
Guy Bedford
@guybedford
Aug 24 2015 14:05
@Munter are you running separate requests or with a third-party bundle?
Peter Müller
@Munter
Aug 24 2015 14:06
@guybedford All separate requests. So no attempt at optimization yet. However we also have quite a lot of local packages, and the doubling of requests coming from jspm is also clogging up the pipes
Guy Bedford
@guybedford
Aug 24 2015 14:06
what do you mean the doubling of requests?
The optimizations to look at are:
  • Ideally a dev build / dev server will do precompilations of files (builder.compile recently landed as we've discussed before)
  • Far-future expires for jspm_packages (as paths versioned), so no requests should be made for these paths
  • Ensuring you're running a fast dev server optimized for many requests (I don't know good ones offhand)
  • If you need further optimization, create some static bundles representing common dependencies that don't change that often
Peter Müller
@Munter
Aug 24 2015 14:09
Ah, that only happens for jspm packages.
I'm going to have some time at work for looking further at it this week. Might make some more moves on https://github.com/Munter/express-systemjs-translate then. I've just been top busy these last weeks with moving apartment
Guy Bedford
@guybedford
Aug 24 2015 14:11
sure just let me know if you need any help at all
it's really common to have a gulp task that does the builder.compile thing on the local app folder
attached to a watch task
Peter Müller
@Munter
Aug 24 2015 14:12
I'll have to get up to speed with all notifications on the different jspm/systemjs issues to remember where we left it
We're too big to bundle on each change. One of the reasons we didn't go for webpack
Guy Bedford
@guybedford
Aug 24 2015 14:13
yeah I mentioned https://github.com/systemjs/builder/blob/master/lib/builder.js#L145 there, which I believe captured the main use case around separate file precompilation
so you just recompile each separate file as they change rather
if you want to discuss API further let me know
it would be a great project to share with others
(everyone needs this)
Peter Müller
@Munter
Aug 24 2015 14:14
I'll ping you. I need to get up to speed first
Sharon (Sean) Rolel
@Mosho1
Aug 24 2015 15:25
Do we know of an issue where a module is run before all of its dependencies have finished loading?
It doesn't happen all the time so it's pretty hard to investigate