There is a feature called
-Dmodular in Lime/OpenFL for HTML5, that generates distinct “haxe.js”, “lime.js” or “openfl.js” files, separating it from your code. However, this code is generated dynamically, based upon the contents of your specific libraries (and the defines you use) so it is not suitable for a global standard CDN, as your “openfl.js” may be different than mine.
This is changed in our NPM releases, which include a standard “openfl.min.js” which is standard based upon that release version, it is also possible to import distinct OpenFL modules (though I think we could do more to make sure that modules rely on each other as little as possible). Currently, the gzipped version of our “everything” JS file is 230 KB, is this too large?
I have plans to put our “openfl.min.js” on a CDN with each release
EDIT: I have submitted a pull for CDNJS, and just realized JSDelivr works automatically
We can still work on modularizing more