HaJaeKyung / KittyExtension

Fan add-on for https://www.cryptokitties.co
MIT License
232 stars 88 forks source link

Adds localStorage, splits id validation and rendering to own functions. #5

Closed VesterDe closed 6 years ago

VesterDe commented 6 years ago

I tested this out for myself and it seems to work.

If anyone can see any bugs feel free to commit.

Localstorage makes it much much faster on subsequent page loads. Since cat attributes don't change I didn't implement a way to invalidate the cache. Just in case I did write up a line to save the time the data was cached, so it can be implemented later and the data will already be there.

Closes #4

HaJaeKyung commented 6 years ago

Thanks for the help