Difegue / LANraragi

Web application for archival and reading of manga/doujinshi. Lightweight and Docker-ready for NAS/servers.
https://lrr.tvc-16.science
MIT License
2.25k stars 160 forks source link

Fix #975 Preload image size asynchronously #991

Closed anonstash closed 4 months ago

anonstash commented 4 months ago

Was a pretty low hanging fruit so tried to do it in the simplest way possible. Adds an async version of the getImageSize function and calls it in Reader.loadImage. Other line changes are formatting stuff done by the autoformatter specified in devcontainer.json.

Difegue commented 4 months ago

This looks about right to me. Happy to finally cross out this precaching HEAD item from my todolist! Thanks a bunch.

holopin-bot[bot] commented 4 months ago

Congratulations @anonstash, the maintainer of this repository has issued you a holobyte! Here it is: https://holopin.io/holobyte/clxv360o508940ckzu2aqdby6

This badge can only be claimed by you, so make sure that your GitHub account is linked to your Holopin account. You can manage those preferences here: https://holopin.io/account. Or if you're new to Holopin, you can simply sign up with GitHub, which will do the trick!