ember-asset-loader
ember-asset-loader copied to clipboard
Add the script tag after-render
Kinda strange to add to the DOM during just any period, we likely want this to always happen when stuff has settled down.
In-theory this could be made pluggable, allowing an application to provide an alternative schedular.
import { setScriptScheduler } from '...';
setScriptScheduler(function(cb) {
schedular.scheduleWork('afterContentPaint', cb);
});
cc @scalvert
Rebased this on top of latest master, and fixed the two failing assertions (both around service.loadAsset()
rejecting).
@stefanpenner / @trentmwillis - This is ready for another look.
@stefanpenner - Mind rebasing?
@stefanpenner mind rebasing? please
sure
@stefanpenner I'd love to see this merge, you want some help?
@villander yes please
@stefanpenner conflicts solved by #81