You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
To do: cache assets as typed arrays instead of blobs on iOS devices
see: https://web.dev/articles/indexeddb-best-practices#:~:text=Safari%20on%20iOS%2C%20in%20particular,while%20an%20ArrayBuffer%20does%20not.
The text was updated successfully, but these errors were encountered: