A little new extension between two exams to study 🙂
This one reloads a tab periodically, for the moment every 60 seconds, but it already has the code to adapt itself to page changes:
- When the page has changed since the last update, reload the page in half the time as before
- When the page hasn’t changed, reload the page in last reload time + 60 seconds
This isn’t very “smart” but still somehow adapts itself into the page reload rate.
The real problem is to detect when the page changes, there is no easy way, so it will wait a bit.