No T-Rex

Categories

Component ID

2804579

Component name

No T-Rex

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

'No T-Rex' provides offline functionality to Drupal sites.

Functionality currently available:
- When a network connection isn't available, present users with a simple custom message.
- When a network connection isn't available, users can still access pages they have previously visited.

Functionality under construction:
- When a network connection isn't available, present users with complete page.
- Show a list of available links to cached content.
- [will add more ideas as the module evolves]

NTR uses a 'service worker' script to define the desired offline behaviour. Service workers are not supported in all browsers, if your browser doesn't support them you will receive the standard offline behaviour.

This project is a proof of concept, inspired by the 'Offline First' talk I saw at Drupal Camp Bristol 2016 (https://www.drupalcampbristol.co.uk/session/offline-first). Hopefully, it creates a start-point for designing offline experiences for Drupal users. There is the potential here for creating entire custom offline apps that run alongside the live site.

Prerequisits:
- In order for this online functionality to work, the site must be accessible via SSL.
- You must also view the site via a modern browser that supports service workers.

Usage:
- After installing the module, visit it's admin page at /admin/notrex and adjust the settings that define the required offline behaviour.