Skip to content
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

Check online status before prefetching URLs #74

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Check online status before prefetching URLs #74

wants to merge 1 commit into from

Commits on May 23, 2020

  1. Check online status before prefetching URLs

    Related to issue #73
    
    As a website owner, I want to only prefetch URLs when I am online, so that I am not getting network errors when my site is offline or served by a service-worker.
    
    Changes:
    
    - Implement isOnline function to check online status via navigator.onLine (https://developer.mozilla.org/de/docs/Web/API/NavigatorOnLine/onLine).
    - Implement guard in preload function to check online status with this function.
    
    Only tested on my setup. Has to be tested on larger scope before merging.
    tobiasschmidt89 authored May 23, 2020
    Configuration menu
    Copy the full SHA
    b7d2168 View commit details
    Browse the repository at this point in the history