Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cache assets as typed arrays instead of blobs on iOS devices #1

Open
clockelliptic opened this issue Jan 1, 2024 · 0 comments
Open
Labels
bug Something isn't working critical Critical priority

Comments

@clockelliptic
Copy link
Owner

To do: cache assets as typed arrays instead of blobs on iOS devices

Safari on iOS, in particular, cannot store Blobs in IndexedDB.
Luckily it is not too difficult to convert a Blob into an ArrayBuffer, and vice versa. Storing ArrayBuffers in IndexedDB is very well supported.

see: https://web.dev/articles/indexeddb-best-practices#:~:text=Safari%20on%20iOS%2C%20in%20particular,while%20an%20ArrayBuffer%20does%20not.

@clockelliptic clockelliptic added the bug Something isn't working label Jan 6, 2024
@clockelliptic clockelliptic changed the title todo: cache assets as typed arrays instead of blobs on iOS devices cache assets as typed arrays instead of blobs on iOS devices Jan 6, 2024
@clockelliptic clockelliptic added the critical Critical priority label Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working critical Critical priority
Projects
None yet
Development

No branches or pull requests

1 participant