0

I have watched the latest ng-conf and saw Brad Green says Angular2 now weight 45K, and angular1 is 56K. I try to understand what those number represent, but without success.

I also saw this gist that list Angular1 and 2 frameworks by size. And there are completely different numbers there.

The ng-conf YouTube link (it's in 57:10).

The relevant slide: enter image description here

Nirgn
  • 1,879
  • 4
  • 23
  • 28

2 Answers2

0

I understand well your question ;-) In fact, it's after packaging your application and using tree shaking. The latter is a technique that leverages modules to only keep what is used in the application (apply to third party libraries as well).

I think these two links could help you:

Thierry Templier
  • 198,364
  • 44
  • 396
  • 360
0

The presentation was about offline template compiler that is currently experimental, that eliminates loading Angular2 parser and compiler into the browser by processing the templates and converting all declarative bindings to JS at compile time. This allows to reduce the Angular2 package code size that actually needs to be loaded into the browser.

If one requires solutions like demonstrated in How to realize website with hundreds of pages in Angular2 the parser and compiler would be required to be loaded into the browser and lose this size benefit.

Community
  • 1
  • 1
Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567