pioneers / website

PiE's public-facing website, built on Jekyll.
https://pioneers.berkeley.edu
Apache License 2.0
5 stars 47 forks source link

Reduce image file sizes #487

Open kev-chien opened 6 years ago

kev-chien commented 6 years ago

Pages lag so much its kind of embarrassing.

It should be cool to look into scripts or just terminal commands to do this, I know Mac Terminal has some commands for this.

quantumfusion commented 6 years ago

Quick question, this is page load latency when loading the production website, correct? I highly doubt it will make much of a difference, but I believe we are using CloudFlare for some things and it may be worthwhile to turn on their caching.

jeromew21 commented 6 years ago

I'll do a PageSpeed Insight or whats-its-name (the fancy tool Google provides) to pinpoint exactly where the speed bottlenecks lie in production.

jeromew21 commented 6 years ago

Some things from that: images are the biggest culprit, an entire megabyte could be saved according to Google. Another thing is that 1) none of the javascript/css files are compressed (I'm not familiar with gzip on the server side, however) and 2) loading the scripts blocks rendering (will look in to async loading js libraries)