Does anyone think that the “html5 js” file exported by “openfl” is very large?
Even exporting an ‘empty html5’ 'js file still has 2.6 MB
There are too many questions from beginners, and I feel helpless when others treat me like a water sticker
Most web servers use gzip compression, so the amount of data sent over the network will likely be smaller than that.
However, you can also use the -final
option to reduce your JS size (lime build html5 -final
). The -final
option turns on advanced minification, which will aggressively remove unused code. However, it can cause some projects to break, such as if they the Reflect
class, so it isn’t a solution for everyone.
3 Likes