PWA Cross Browser
Websites should be able to work on all browsers in order to be visited by as many users as possible.
Make sites work on every browser
Websites should be able to work on all browsers (or at least on the main ones) in order to be visited by as many users as possible.
It is therefore important to always test them, especially on browsers such as Chrome, Firefox and Safari, to avoid late errors.
If your website is a PWA (Progressive Web App) you could use a service worker tool such as Workbox.
Whenever possible, Workbox is able to automatically fall back on alternative implementations of features that are not present in certain browsers:
- When possible, the workbox-broadcast-cache-update module uses the Broadcast Channel API and falls back to a postMessage() implementation.
- When possible, the workbox-background-sync module uses the Background Sync API and retries the queued events each time the service worker starts.