You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently lurnby.com doesn't work offline. If trying to access it offline the service worker just shows a standard this app doesn't work offline.
But the idea is that it should also work offline to some degree, although I am not sure exactly how much.
A simple idea is that it should cache the x most recent articles so that you could read them offline. Or it should cache x most recent highlights so that review is possible.
In the case of articles, I think that becomes a bit challenging when figuring out how to also allow highlighting in offline mode.
Highlights actually change the text of the article so to create a highlight object, you would need to:
Capture highlighted text
Capture notes added to highlight
Capture any tags/topics
Capture the precise location in the text
Add to some sort of queue that then updates the db when network access arrives.
One possible solution for this is that when creating a highlight while offline, the highlight is created with a temporary ID and then rendered to the screen as normal. A javascript object takes the place of the DB.
Once network functionality is regained and an actual ID is generated by the db, the article text gets updated so that the highlight points to the proper place.
The text was updated successfully, but these errors were encountered:
Currently lurnby.com doesn't work offline. If trying to access it offline the service worker just shows a standard this app doesn't work offline.
But the idea is that it should also work offline to some degree, although I am not sure exactly how much.
A simple idea is that it should cache the
x most recent articles
so that you could read them offline. Or it should cachex most recent highlights
so that review is possible.In the case of articles, I think that becomes a bit challenging when figuring out how to also allow highlighting in offline mode.
Highlights actually change the text of the article so to create a highlight object, you would need to:
One possible solution for this is that when creating a highlight while offline, the highlight is created with a
temporary ID
and then rendered to the screen as normal. A javascript object takes the place of the DB.Once network functionality is regained and an
actual ID
is generated by the db, thearticle text
gets updated so that the highlight points to the proper place.The text was updated successfully, but these errors were encountered: