These are chat archives for systemjs/systemjs

12th
Nov 2015
Matt
@mattfysh
Nov 12 2015 18:12
anyone have thoughts on how to handle loading css? we want to use <link> to get all the native browser performance enhancements that come with it, but would still like to map dependencies between stylesheets and use that to perform a deterministic topological sort that drives the final order of the <link> tags within the page
Peter Müller
@Munter
Nov 12 2015 18:27
If you have css as dependencies of your modules there is no reason to define dependencies between stylesheets
Matt
@mattfysh
Nov 12 2015 18:28
we're hoping to manage inherited css properties via declared dependencies, this allows us to isolate any part of the tree and fully reconstruct its production counterpart
Peter Müller
@Munter
Nov 12 2015 18:28
In a build SystemJS doesn't have a good solution for appending <link> tags in the correct order, or bundle them for that matter. You'll have to do that yourself or find a tool that does it.
Matt
@mattfysh
Nov 12 2015 18:29
ok np, I'll try to get something out soon and if you guys want to take a look and provide feedback that would be great :)
Peter Müller
@Munter
Nov 12 2015 18:29
We are working on making Assetgraph play well with systemjs so you won't even have to think about this
Davis Kim
@davis
Nov 12 2015 22:47
anyone know of a workaround for iframes when having global dependencies?
i'm using $.deparam which depends on a global jquery object and i'm getting this error
Uncaught SecurityError: Failed to read the 'frame' property from 'Window': Blocked a frame with origin <my iframe> from accessing a frame with origin <my window>. Protocols, domains, and ports must match.
linkDynamicModule @ merlin.js?version=5.2.1:295
getModule @ merlin.js?version=5.2.1:238(anonymous function) @ merlin.js?version=5.2.1:273
(anonymous function) @ $.def.js:2
linkDynamicModule @ merlin.js?version=5.2.1:269
getModule @ merlin.js?version=5.2.1:238
(anonymous function) @ merlin.js?version=5.2.1:273
(anonymous function) @ $.iter-define.js:4
linkDynamicModule @ merlin.js?version=5.2.1:269
getModule @ merlin.js?version=5.2.1:238
(anonymous function) @ merlin.js?version=5.2.1:273
(anonymous function) @ es6.string.iterator.js:4
linkDynamicModule @ merlin.js?version=5.2.1:269
getModule @ merlin.js?version=5.2.1:238
(anonymous function) @ merlin.js?version=5.2.1:273
(anonymous function) @ set.js:3
linkDynamicModule @ merlin.js?version=5.2.1:269
getModule @ merlin.js?version=5.2.1:238
(anonymous function) @ merlin.js?version=5.2.1:273
(anonymous function) @ set.js:2
linkDynamicModule @ merlin.js?version=5.2.1:269
link @ merlin.js?version=5.2.1:128
load @ merlin.js?version=5.2.1:368
(anonymous function) @ merlin.js?version=5.2.1:424
(anonymous function) @ main.js:28
(anonymous function) @ merlin.js?version=5.2.1:386
(anonymous function) @ main.js:28
Davis Kim
@davis
Nov 12 2015 23:11
i see issues regarding the 'frameElement' thing but what about 'frame' ?