Reduce c2runtime.js file size.

Discussion and feedback on Construct 2

Post » Wed Oct 28, 2015 6:23 am

C2runtime very large in size even for empty project (429kb).
There is a minify script option in 'Export option' dialouge box,
but my project required it uncompressed.
Is there a leaner version of that runtime available…?
(maybe with some features deactivated?)

Image

Thanks...
B
10
S
2
Posts: 20
Reputation: 694

Post » Wed Oct 28, 2015 9:20 am

that's nothing dude. i've got mine up to 900kb + data of 1.6mb :)
Sea Monsters template - Isometric
Also includes 40 pages PDF of optimizations and "how-to" for your games, and how the "sea monsters" template was built. Follow link for details :)

sea-monsters-templates-and-assets_t162705
B
41
S
14
G
12
Posts: 623
Reputation: 9,359

Post » Wed Oct 28, 2015 11:17 am

That file contains the c2 runtime and all the plugins you use in your project. There really isn't anything you can cut. Maybe removing all the comments in it could save some space, but you'd have to find a tool for that.
B
91
S
31
G
102
Posts: 5,231
Reputation: 67,248

Post » Wed Oct 28, 2015 1:16 pm

Your question is basically "how do I make the file smaller without using a feature specifically designed to make the file smaller?".

You should just use the feature specifically designed to make the file smaller :)

I'd also point out most servers send static resources like .js files compressed, similarly to how a zip file compresses them. So your screenshot helpfully shows that the server will only really transfer about 87kb of data, even without minification.
Scirra Founder
B
387
S
229
G
87
Posts: 24,245
Reputation: 192,050


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 3 guests