Solumin / YGO-FM-FusionCalc

A Fusion calculator for Yu-Gi-Oh! Forbidden Memories
20 stars 17 forks source link

Improve page load time #19

Open Solumin opened 8 years ago

Solumin commented 8 years ago

It's currently > 1 second on my machine, which is pretty bad. I think minimizing some of the JS and CSS, possibly combining JS files, and maybe gzip will help.

CathodeRaymond commented 8 years ago

Most of the page weight is coming from the card data itself, which is comparatively huge. You can try http://www.cleancss.com/json-minify/ to try and save some space but it will likely always be ~2 megs for those big json lists.

EDIT: https://www.npmjs.com/package/json-minify for a command-line utility

Solumin commented 8 years ago

Combine + Minify will help a lot, I hope.

Chrome has a built-in Auditing tool that has some good advice, which is what I based this issue on.