As of yesterday, ember-auto-import can use ECMA dynamic import() to lazily load any dependency into your Ember app (or addon).

To demonstrate how it works, here's a screencast where I build an app that fetches some real data from my city and plots it using Highcharts. The code for Highcharts is only loaded when needed, using dynamic import().

The demo app's source is available here.

Photo credit unsplash-logoGuillaume Bolduc