/ Videos

Dynamic import() into your Ember app

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

Edward Faulkner

Edward Faulkner

Hacker and entrepreneur. Ember Core Team member. I help organizations reinvent themselves through advanced software.

Read More
Dynamic import() into your Ember app
Share this