Reload is a tool for conditionally reloading a page.
- Wall Displays - Have your application refresh itself when new code is available without having to access it to manually refresh the page.
JavaScript:
reload.ifThisChangesOverTime('version.json', 10000, checkForVersion);
function checkForVersion(response) {
return response.version;
}
version.json:
{
"version": "0.0.1"
}
JavaScript:
reload.now();