With 440 Artists, 2000+ albums it's only a mere 17388MB worth of just padding #oops
Now embrace for the tip: see if you can add crossorigin attribute to your <img> tags. Save and deploy and observe the drastic change in cache size.
Just pushed a few updated, switched to @workboxjs for the implementation of the service-worker and handling the caching strategies.
Learned a few things about opaque responses... long story short: Cache size is now reduced from 20GB+ to 60MB :D
Longer version:
Used opaque responses to store the various album-art responses from the 3rd party CDNs. An opaque response adds a lot of padding to have a unique response; by a lot think 7MB of padding!
Post-xmas release 3.44.0 removes the geo location based light/dark mode. It shaves ~ 3kB of the application and does the same as system theme if you configure your system to follow daylight for your location.
With 3.25.0 JSMusicDB now has shortcut actions
Right-click on the icon (or long press in Android) to quickly skip or play/pause without having to open or focus the player.
For those times you forget why media-keys exist :)
#PWA#ModernWeb
In the future JSMusicDB might use this mechanism for other events as well but for now it's only used for the reload events.
If SSE can't be used JSMusicDB will fallback to polling.
JSMusicDB is updated to use Server Sent Events instead of polling for changes. Using node-mp3stream (5.6.16 and above) and JSMusicDB 3.24.1 will result in a lot less requests to your server over time
Instead of checking every x for an update the server sends the changes as they appear, instantly to all connected clients.
This means you get the status of your collection reload without any form of delay and you don't DoS your server while nothing is happening.
Released node-mp3stream today which adds support for server sent events (see). Next minor JSMusicDB will use SSE instead of polling to validate the scanning progress.
The result is a lot less http requests.
This virtualizer release includes big improvements to scrolling, some major cleanup as we work toward graduation from Labs, and an experimental new masonry layout.
Don’t get too excited about the nice, round number, though–we’ve just changed our versioning scheme!