Skip to content

Latest commit

 

History

History
executable file
·
33 lines (19 loc) · 593 Bytes

README.md

File metadata and controls

executable file
·
33 lines (19 loc) · 593 Bytes

Reload

Reload is a tool for conditionally reloading a page.

Use Case

  • Wall Displays - Have your application refresh itself when new code is available without having to access it to manually refresh the page.

Examples

Check a JSON file for changes to a value on your server

JavaScript:

reload.ifThisChangesOverTime('version.json', 10000, checkForVersion);

function checkForVersion(response) {
    return response.version;
}

version.json:

{
    "version": "0.0.1"
}

Just reload now, on your own terms

JavaScript:

reload.now();