Skip to content

feat: Offline #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 16, 2024
Merged

feat: Offline #10

merged 4 commits into from
Oct 16, 2024

Conversation

lholmquist
Copy link
Member

Adding the first draft of the offline section


This will allow a web application developer to store the html, css, and js files into a cache in the browser, which can then be loaded from the Service Worker.

Unrealted to offline, but they will also allow access to push notifications for the web.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*unrelated spelled incorrectly

@@ -0,0 +1,66 @@
# Offline

Offline could mean mulitple things in the context of Web Applications and it is important to be prepared for those different scenarios.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*multiple spelled incorrectly.

Copy link
Contributor

@adigidh adigidh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

As a follow-up do you think it makes sense to cover the following:

  • How to also handle the case of the user's browser not supporting service workers
  • Bunch of problems with service workers
  • When service workers are worth it

Both approaches have a similar concept of getting something to the user quickly while the rest is being loaded in the background.

### The Cache

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you think it's useful to add

  • Precaching
  • Serving requests from the cache

Or possibly add a link to the Service Worker lifecycle docs.

@adigidh
Copy link
Contributor

adigidh commented Jul 10, 2024

nice updates, couple of minor spelling mistakes. Some discussion points as comments. Overall LGTM 👍

@lholmquist lholmquist merged commit c491520 into nodeshift:main Oct 16, 2024
1 check passed
@lholmquist lholmquist deleted the offline branch October 16, 2024 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants