Anvil_extras: Local Storage: Import Error Issue On Mobile Device

Anvil extras storage uses a cdn to load the JavaScript wrapper (localForage). Looking at CloudFlare status it does look like there have been some recent incidents.

You can mitigate against this issue by using a different cdn provider for localForage in your native libraries

If localForage already exists in the window namespace then anvil-extras won’t try to load it from CDN.

Jsdeliver is a good alternative.
You could also build it yourself and put the script in your theme assets.

5 Likes