Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Production build is 458KB #9

Open
owencm opened this issue May 25, 2016 · 2 comments
Open

Production build is 458KB #9

owencm opened this issue May 25, 2016 · 2 comments

Comments

@owencm
Copy link

owencm commented May 25, 2016

Firstly, thanks a lot for building this, I'm super pumped about the possibility of working with this stack.

I just downloaded and built this example and found it's currently 458KB (ungzipped).

I'm worried that the payload sizes are way too big to simply be practical, especially once actual business logic gets added.

Did I miss something? Given React is ~1/10th of that it seems possible I have some configuration wrong and the actual payload should be much smaller?

If not, are there plans to reduce the payload size?

@freiksenet
Copy link
Contributor

We haven't looked at optimizing build size yet to be honest. Seems that React+Relay are about 200KB minified (facebook/relay#996), so we have extra 258KB from somewhere. I'll take a look at this at some point to see if there are any low hanging fruits.

@TheGhoul21
Copy link

TheGhoul21 commented Oct 6, 2016

on the client-side you may let the browser cache as much as possible (using < script > tags with minified versions). Same for the build, ufligy and minify to have smaller builds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants