I measured 5mb, which took me 43 seconds to load. Hmm…
Maybe you have compression turned off in your browser?
Gitit is using jquery and sending about 500k of js bloat, not as bad as 2 meg, but still bad.
I looked at the tcp streams for both discourse and gitit with wireshark, and neither of them is sending compressed. Is that an nginx config thing that can be fixed? I re-enabled external interfaces on gitit so I could connect from my browser to the happstack server on port 5001 and still got no compression, even though gitit is configured to compress.
Apparently discourse inside of docker has gzip enabled:
According to firefox, the HTML is being compressed with gzip, but none
phr email@example.com writes:
I’ve never investigated this issue before but I’d sure WANT the js to be gzipped. The minified vendor-2ccb*.js file is 2.4MB uncompressed and 533K gzipped.
Added: actually another bit of weirdness. When I wget that file it’s 2.4MB but the firefox timing graph further up says it’s only 1.2MB.
I needed to enable gzip compression on the nginx proxy. I added this to the “http” block:
gzip now works on all of our services. Thanks for bringing this up!
I wonder whether it can figure out to cache the gzipped js that’s coming from another server. The compute time for 500k of compressed output is non-trivial. Also we’ll need to check that it’s still happening once we get https working.
Added: I confirmed that discourse and gitit are both speedier now, and firefox network console reports both are compressed, reflected in the timings. I haven’t bothered wiresharking it. Thanks for fixing!!!