Service Workers: Difference between revisions
From Joomla! Documentation
Created page with "== Service Worker Specification ==" |
m Category |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
== Service Worker Specification == | == Service Worker Specification == | ||
This is a discussion document to work out the best practice to implement Progressive Web App manifest files and the implementation of service workers. | |||
The idea is to support the manifest and service worker generation dynamically.<br /> | |||
The scope it to support the following features:- | |||
*Offline Navigation | |||
*Advanced Cache | |||
*Splash screen | |||
*Lazy (Background) Loading | |||
*Web Push Notifications | |||
*Theming | |||
*Home Screen Management | |||
=== Web App Manifest <ref>https://www.w3.org/TR/appmanifest/</ref> === | |||
#system/manifest: $document->addCustomTag('<link rel="manifest" href="' . $base . '/index.php?option=com_ajax&plugin=joocialWebpushManifest&format=raw">'); | |||
#ajax/manifest: Generator class | |||
##template - params | |||
##wam/ component listener plugin | |||
##json output | |||
#Service Worker Geneation: event hub | |||
##wam/ listener plugin: JDocument->addServiceWorker | |||
##JS Hub initilization | |||
<noinclude> | |||
[[Category:Development]] | |||
</noinclude> | |||
Latest revision as of 12:01, 19 November 2017
Service Worker Specification
This is a discussion document to work out the best practice to implement Progressive Web App manifest files and the implementation of service workers.
The idea is to support the manifest and service worker generation dynamically.
The scope it to support the following features:-
- Offline Navigation
- Advanced Cache
- Splash screen
- Lazy (Background) Loading
- Web Push Notifications
- Theming
- Home Screen Management
Web App Manifest [1]
- system/manifest: $document->addCustomTag('<link rel="manifest" href="' . $base . '/index.php?option=com_ajax&plugin=joocialWebpushManifest&format=raw">');
- ajax/manifest: Generator class
- template - params
- wam/ component listener plugin
- json output
- Service Worker Geneation: event hub
- wam/ listener plugin: JDocument->addServiceWorker
- JS Hub initilization