Libraries aren't compressed

Just starting out? Need help? Post your questions and find answers here.
jamirokwai
Posts: 40
Joined: Fri Sep 25, 2015 12:00 pm

Libraries aren't compressed

Post by jamirokwai »

Hi there,

I was fiddling around with the "2D Drawing example file" to check the JS optimisation, and switched on the "Optimise JavaScript Output" in Compiler Options....

However, it doesn't matter, if it's on, or off. The resulting JS is the same size, and the resulting library folder is always about 3.1mb.
In FireFox, loading time and sizes are the same with or without optimisation, and even the calls are the same.

Do I get this wrong, or should the output be smaller?

I am on a Mac, by the way - using SpiderBasic 2

Cheers
Jörg
Fred
Site Admin
Posts: 1821
Joined: Mon Feb 24, 2014 10:51 am

Re: Libraries aren't compressed

Post by Fred »

Optimize output only optimize the spiderbasic.js file, not all depencies (which are already compressed in SB 2.00). For a small program, not all dependencies are required, you can check this with the network tab of Firefox dev tools for example
jamirokwai
Posts: 40
Joined: Fri Sep 25, 2015 12:00 pm

Re: Libraries aren't compressed

Post by jamirokwai »

Fred wrote:Optimize output only optimize the spiderbasic.js file, not all depencies (which are already compressed in SB 2.00). For a small program, not all dependencies are required, you can check this with the network tab of Firefox dev tools for example
Ah, merci for the clarification. So, no bug :-)

Is it then possible to just let Spiderbasic copy the needed dependencies when compiling? It doesn't matter for webspace, but an App on mobile devices should be as small as possible...
Post Reply