Good day.

If I understand everything correctly, by default emberJs means that all templates (handlebares) are stored in my final html. That is, the user opened the main page, and immediately all the possible templates were loaded. It confuses me a little. Who knows, please explain.

    2 answers 2

    Yes this is true. This is not very convenient especially when there are more than a dozen such templates. But no one bothers to use requirejs with their text plugin. Which will allow to load templates as needed. Here, of course, there is also a disadvantage, it is necessary to refactor the project.

      well, the templates are stored in the final js file ... templates are compiled from htmlbars (Ember.js templates) ... you can customize your own assembly, for example, webpack here is an example https://github.com/pit-rpg/WebPack-Ember-Express .. then you can load components, templates, styles, if necessary with the help of webpack require ensure, it also supports AMD podgruzku and nodovsky style .. etc ...