-
Notifications
You must be signed in to change notification settings - Fork 60
Loading order #57
Comments
We don't provide guarantees for CSS loading order, just like modules. Although the next major release will actually provide this feature as load execution order is set to be deterministic in the latest loader specification. |
@guybedford: When you say 'major release' – are we talking about 1.0.0 of SystemJS? Do you have any idea when that will be? I need to be able to depend on load order in order to override UI library features without relying on |
@dalgard unfortunately that update won't be anytime soon, as it requires the whatwg loader spec to be stable first. |
I am experiencing this problem.. Is there some javascript event / method of being notified once all dependencies have been loaded? Because I was thinking of perhaps hiding the entire page content, and then once all dependencies loaded, unhide the content. Does this sound workable? |
Ok - it was as simple as:
|
Any updates on this ? |
@djflex68 - does |
Unfortunately not in my case. I'm trying to load all CSS files of my application using import directive in a single .ts file. Ordering matters because of CSS selectors precedence. |
This might be a more general systemjs feature/question: is it possible to ensure that CSS gets loaded before the main page loads?
I.e., to replace the need for hard coded package links in the header:
With something like this (which works, but loads asynchronously -- so you see the raw HTML for half a second before the CSS loads):
The text was updated successfully, but these errors were encountered: