we are evaluating Angular 2 for a project, and I noticed some point where I need to clarify if this is an Angular problem or if I am using Angular incorrectly.
We replace parts of static Angular pages to improve user experience. Since replaced elements can be in arbitrary positions on the page, we cannot load one Angular application (components are not a tree, as in the DOM, and we need outdated templates). We also do not use corner routing.
So, the first question will be if Angular is the right technology for non-SPA sites. Just create widgets.
The second question is about performance. If you have a page without SPA, you cannot omit page reloading. Every time the page reloads, Angular needs to be initialized again. A good role here is that creating multiple root components does not increase the load significantly, so that's a plus. The bad thing though, if I use the configuration from the Quickstart tutorial , I take about 1.7 to initialize the applications and components that appear, with a lot of time attributed to system.js, to the class loader. By changing this to webpack and precompiling everything, components still require 300-400 ms. This page has a very similar download for my components.
Can this be optimized further (say 130 ms) or should I look for another technology (for example, React), since it is not in the Angular area and is not used for pages that are not related to SPA.
Greetings
Tom
source share