On the trivial html test page I put together the result wasExciting!
If you look back at part 1 of this series I mentioned that there was some concert over the amount of crud which was created by Dart during a normal compile. To make these boxes dart2js generated 1891 lines of code. Hummâ€¦ that seemsÂ excessive. But it isnâ€™t really a fair comparison is it? I included dart:html which is likely huge as it contains a bunch of the functionality of jQuery. If you read the Dart documentation it suggests that Dart will actually trim out functions which are not used. There is also a â€“minify flag which can be passed to the dart2js compiler. Using the minify option the library is shrunk way down and the results are in line with other selector libraries.
|Library||Size when Minified|
â€œNot terrible but not fantasticâ€ pretty much sums up my feelings about Dart in general.