bottle-service icon indicating copy to clipboard operation
bottle-service copied to clipboard

Make compatible with more browsers

Open NathanWalker opened this issue 8 years ago • 5 comments

This is more of a to-do to myself to create a PR to broaden the browser support for this. I'm pretty sure there's service worker support in Safari (desktop and mobile) and chrome mobile or at least a way to make it work from what I've read in past.

NathanWalker avatar Dec 23 '15 07:12 NathanWalker

https://jakearchibald.github.io/isserviceworkerready/

NathanWalker avatar Dec 23 '15 07:12 NathanWalker

https://github.com/coonsta/cache-polyfill

NathanWalker avatar Dec 23 '15 08:12 NathanWalker

Good points, definitely needed once everything is working (I am looking to make a demo based on https://github.com/bahmutov/hydrate-vdom-todo)

bahmutov avatar Dec 23 '15 13:12 bahmutov

I haven't looked at this lib too deeply, but are there constraints around how much data you can stuff into localStorage? Especially on mobile platforms?

boneskull avatar Dec 29 '15 05:12 boneskull

so localStorage is very problematic - it has 5MB at most limit, and the behavior varies across browsers how and if it is going to ask. I suggest using localForage project - it works across any available data storage

bahmutov avatar Dec 29 '15 14:12 bahmutov