ember-asset-loader icon indicating copy to clipboard operation
ember-asset-loader copied to clipboard

The loader when in node land does nothing, can we teach it to put link/script tags in the DOM?

Open Duder-onomy opened this issue 6 years ago • 0 comments

Hey, I am having an issue with lazy engines + fastboot resulting in a FOUC.

So far, I have nailed it down to 2 issues,

  1. This code from ember engines will always return true in fastboot... not sure how to fix that one. https://github.com/ember-engines/ember-engines/issues/564
  2. Ember Asset Loader does nothing in node land/fastboot. So even if we were to fix that first bit, ember asset loader would not load the async engines css and js anyways.

I propose we teach each loader how to load itself in the browser and in node land. In node land, it would just append a script/link tag to the dom.

Duder-onomy avatar Jul 10 '18 19:07 Duder-onomy