Skip to content

A tool to conditionally reload a static page or single-page application

License

Notifications You must be signed in to change notification settings

anjunatl/reload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();

About

A tool to conditionally reload a static page or single-page application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published