intercellular / cell

A self-driving web app framework
https://www.celljs.org
MIT License
1.5k stars 93 forks source link

Offline support #124

Closed 573 closed 7 years ago

573 commented 7 years ago

How is the state regarding reading pages generated using celljs in tools providing offline mode i. e. pocket ?

piranna commented 7 years ago

So far they can be executed from file:// scheme, so pretty good :-) If you are talking about state persistence, I think Cell don't support it (yet?) and would need some way to re-hidrate the objects. Maybe Cell would add a .toJson() method and another module would store and fetch the JSON-like objects from LocalStorage...

El 26/06/2017 23:17, "Daniel Kahlenberg" notifications@github.com escribió:

How is the state regarding reading pages generated using celljs in tools providing offline mode i. e. pocket ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/intercellular/cell/issues/124, or mute the thread https://github.com/notifications/unsubscribe-auth/AAgfvpDOGqsQVru9sUDQhaWMnaWpwkYEks5sIB_zgaJpZM4OF3h6 .

gliechtenstein commented 7 years ago

I think @573 means if the dynamically generated DOM gets properly crawled by services like pocket or instapaper. I just tried and it's working fine.

But you can try yourself and let me know.

573 commented 7 years ago

@gliechtenstein i. e. pocket does seem to properly crawl the generated DOM, in laymans terms as long as pocket has an internet connection the celljs page is properly rendered in pocket. I tested a similar scenario with a celljs page stored in pocket and having no internet connection. That said I switched the connection state to off shortly after the page was fully rendered in pocket. As a result the page / DOM was suddenly empty again. I guess that is where @piranna suggestion comes into play...

ghost commented 7 years ago

pwa +1

gliechtenstein commented 7 years ago

@573 Isn't this something that the developers should implement on their own? Not sure how this is related to Cell.

But I may be misunderstanding all this, so if you have a reference about this please share. Thanks!

ghost commented 7 years ago

@573 give a hand with @gliechtenstein

gliechtenstein commented 7 years ago

Closing for now for the reason above but feel free to reopen if I am misunderstanding something. Thanks!

573 commented 7 years ago

@gliechtenstein I issued a report to the pocket people. Thanks!