I have an EmberJS single page frontend app. I want to split resources(js/html) loaded for different pages. Right now, ember builds the hole javascript code into a single file which then is included in the DOM. The same with the templates.
What I want is to load a small piece of template/js for some specify routes, because I need them to be fast. When the user moves to a new route, I can download the hole one-page app, but for these routes I need the minimum resources loaded.
How can I achieve this using emberjs?
Aucun commentaire:
Enregistrer un commentaire