ember-engines / ember-asset-loader

Asset loading support for Ember applications
MIT License
34 stars 27 forks source link

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

Open Duder-onomy opened 6 years ago

Duder-onomy commented 6 years ago

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.