Fyrd / caniuse

Raw browser/feature support data from caniuse.com
https://caniuse.com
Creative Commons Attribution 4.0 International
5.64k stars 1.38k forks source link

Offline support for caniuse.com #1756

Open caesar opened 9 years ago

caesar commented 9 years ago

I work offline a lot (traveling etc) and it would be really great to have caniuse.com work offline. I presume this would be useful for many other people too.

I imagine this would not be too difficult to implement since the site is already effectively a single-page application. That said, I have not looked at how data is loaded on the page so perhaps it could be harder than I am assuming...

tomByrer commented 9 years ago

What do you picture @CaesarSchinas? "Application Cache" so the browser keeps the app in memory (hopefully; remember that mobile devices & even desktop browsers have limits.). A Chrome Store / Firefox Marketplace app? Downloadable caniuse.tar.gz file?

caesar commented 9 years ago

@tomByrer, yes, I had been thinking of AppCache for the site and perhaps IndexedDB for the data. Do you think there would be a problem with reaching browser storage limits? The dataset isn't that big is it?

An alternative which would also be nice would be a Dash docset.

caesar commented 9 years ago

Incidentally devdocs.io seems to manage to store quite a lot of data locally, we could look at that for inspiration.

caesar commented 9 years ago

Or (sorry for string of comments in quick succession) maybe collaborate with devdocs.io to get a caniuse docset on there?

tomByrer commented 9 years ago

devdocs.io seems like a good idea; don't have to worry about deployment. Seems like you have to configure their scrapper, but I wonder if submitting the .json files directly with a template would be better?

(BTW, you can edit old posts; I often do.)

lastpotato commented 8 years ago

I've posted a suggestion in devdocs's trello board with link to this issue. Despite the fact that they require >3k stars for project to be included, I hope it will be implemented anyway.

lastpotato commented 8 years ago

It was implemented (thanks to @Thibaut) and support tables is now available in devdocs.io (can also be accessed offline).

GitToTheHub commented 5 years ago

Could caniuse maybe download the data like devdocs for offline? I saw the data is available as a "data.json" in this repo, maybe it could be used as offline data?