Page 1 of 1

Libraries aren't compressed

Posted: Sat Jan 14, 2017 10:56 am
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

Re: Libraries aren't compressed

Posted: Sat Jan 14, 2017 3:14 pm
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

Re: Libraries aren't compressed

Posted: Sun Jan 15, 2017 2:22 pm
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...