3 ms·
When using dart2js, you can split a program into multiple chunks, and load them separately[1]. But you need to set this up before compiling, so that's not usefu
by xxgreg 14y ago
When using dart2js, you can split a program into multiple chunks, and load them separately[1]. But you need to set this up before compiling, so that's not useful for sharing a library on a CDN.
I think people often use javascript libs on a CDN because they don't want to go to the hassle of setting up a javascript package management system, or figure out which file to download and where to put it. It's not all about load time savings.
Dart's minification, combined with pub, the package management system, make the CDN usecase irrelevant for dart IMHO. A business can just ship their library on pub, and it's easy for people to use because of Dart's out-of-the-box tools.
[1] http://api.dartlang.org/docs/releases/latest/dart_async/DeferredLibrary.html http://api.dartlang.org/docs/releases/latest/dart_async/Defe...