c2runtime.js increased size

Bugs will be moved here once resolved.

Post » Fri Apr 05, 2013 2:48 am

Steps to reproduce:
1. minify script

Observed result:
253kb

Expected result:
210kb

Operating system & service pack:
win xp sp3

Construct 2 version:
r124

Not really a bug, but I just upgraded to the last version, and I had to make changes to three projects, they all gained roughly 15% in file size
I haven't worked in C2 for a while (nor have the time for further tests these days), so this may not have been introduced in the very last version...I noticed r123 had an updated Google Closure Compiler, which may be worse than the previous version?
B
20
S
5
G
8
Posts: 325
Reputation: 6,473

Post » Fri Apr 05, 2013 3:21 pm

Closing as not a bug, this is all the save/load machinery. I tried to design it so Closure Compiler would omit it if it wasn't used, but it proved rather difficult to do that. I don't think it's too important anyway, since most servers transmit HTML, JS and CSS in compressed format, so the actual transmitted size will be roughly equivalent to the size of zipping the file. An empty project exports to ~93kb minified, and compresses down to just 30kb, so I think in practice the runtime script will be about as big as one or two images from your project.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Fri Apr 05, 2013 6:03 pm

Okay, thanks for the details
B
20
S
5
G
8
Posts: 325
Reputation: 6,473


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests