最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

angularjs - Angular Dart to JavaScript result way too big for production? - Stack Overflow

programmeradmin3浏览0评论

Is it right that the minimum / smallest piled and minified JavaScript size of an AngularDart application (that does nothing) is about 650KB ?

That is way too much for mobile applications and even too big for normal applications.

Does anybody know how to get it under 100KB?

Is it right that the minimum / smallest piled and minified JavaScript size of an AngularDart application (that does nothing) is about 650KB ?

That is way too much for mobile applications and even too big for normal applications.

Does anybody know how to get it under 100KB?

Share Improve this question edited Jun 17, 2014 at 2:38 Christine asked Jun 17, 2014 at 1:55 ChristineChristine 3,0642 gold badges26 silver badges36 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 5

The "smallest piled and minified Javascript" is 190KB today. We are tracking that number and care about deploy size and performance.

If you are seeing 650KB, there may be a bug somewhere; if you could provide details in an issue at https://github./angular/angular.dart we would be grateful.

Also, if you could share your use-cases and requirements it would help us in designing the system. e.g. we would love to understand the 100KB requirement.

What I have heard is a size of about 200KB+, never had a closer look myself. Dart targets bigger applications. It uses some boilerplate code of fixed size (this is generated no matter how big your custom code is) for emulating several of its generic functionality like classes. This doesn't pay off for small apps. The bigger the app gets the more this bees an advantage.

They are still working for getting this better, but I guess you can expect only smaller improvements anymore.

How did you build your app to get this result?

发布评论

评论列表(0)

  1. 暂无评论