Replies: 1 comment 1 reply
-
It's to improve the perceived speed of subsequent loads of the SVG sprite sheet. On first load, the sprite sheet is stored in local storage (it's small) and then for subsequent loads the sprite is pulled from local storage initially (so the UI renders fast) and then updated when the network request succeeds. https://github.com/sampotts/plyr/blob/master/src/js/utils/load-sprite.js#L64 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Why is cache-sprite-plyr stored in Local Storage?
Beta Was this translation helpful? Give feedback.
All reactions