Reactgo: Offline Support

Created on 22 Jul 2016  路  8Comments  路  Source: reactGo/reactGo

Service worker time

Enhancement

Add offline support

enhancement

Most helpful comment

cool video, i didn't research that before I posted =\

All 8 comments

@psimyn im not sure what you mean by

Basic app shell (show nav and loader)

could you go into a bit more detail?

@psimyn you can achieve this by building out your UI and components using that style architecture. _ex:_ style your panels to display w/ background-image spinner-gif's, or a placeholder-message (etc) until your fetched-data.length is > 0...

Not sure if I'm understanding entirely... Do you mean, cache fetched-data in LocalStorage, and then use that onLoad instead of a new fetch? ...Or do you mean, "Always show the UI" (even without data)...?

Currently using polling to prevent redundant data-pulls on return page views, in addition to the "always show the UI" strategy... Really would like to hear more about what you're trying to achieve!

Might be worth adding

  • [x] manifest.json

@jrodl3r here is the clip from the video I posted where he warns against using app cache.

and the article where he talks about it http://alistapart.com/article/application-cache-is-a-douchebag

cool video, i didn't research that before I posted =\

Long-term cache is a huge issue for us, not have to update file versions on every new deployment. I'm on this for two days already and can't figure it out due to my limited Webpack knowledge. Same as in https://github.com/reactGo/reactGo/issues/282, I successfully generate assets.json.

Currently, I'm using https://gist.github.com/mhlavacka/ac348ac6fa139491bb5b1b92c4e8cca9 to rewrite file names directly in the files, but then there are different filenames on the server and on the browser what results in 404 error.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jrodl3r picture jrodl3r  路  6Comments

jrodl3r picture jrodl3r  路  7Comments

gsccheng picture gsccheng  路  6Comments

evansteelepdx picture evansteelepdx  路  3Comments

elitekode picture elitekode  路  8Comments