Is Angular Dart to JavaScript result too big to produce?

Is it correct that the minimum / smallest compiled and reduced JavaScript size in an AngularDart application (which does nothing) is around 650 KB?

This is too much for mobile applications and even too large for regular applications.

Does anyone know how to get it under 100k?

+7
javascript angularjs dart size dart2js
source share
2 answers

"The smallest compiled and tiny Javascript" today is 190 KB. We track this amount and take care of the size and performance of the deployment.

If you see 650 KB, there may be an error; if you could provide details in the https://github.com/angular/angular.dart release, we would be grateful.

In addition, if you can share your precedents and requirements, this will help us in the development of the system. for example, we would like to understand the requirement of 100 KB.

+5
source share

What I heard is about 200K +, has never been closer. Dart targets larger applications. It uses some fixed-size boilerplate code (it is generated no matter how big the user code is) to emulate several of its common functions, such as classes. It does not pay off for small applications. The more the application receives, the more it becomes an advantage.

They are still working to get it better, but I think you can only expect smaller improvements.

How did you create an application to get this result?

+5
source share

All Articles