Skip to content

Version Check JSUniversal Frontend Version Detection Tool

Auto-detect detection mode, default auto-polling, manual detection supported

What is Version Check JS?

Version Check JS is a powerful, lightweight frontend version detection tool built with native JavaScript. It provides rich functionality for detecting version changes in frontend applications, including auto-polling, manual detection, custom callbacks, auto-generated version files, format optionsv2.0.0+, and more.

Key Advantages

  • Framework Agnostic: Works with any JavaScript framework or without a framework
  • Auto Mode Detection: Automatically selects ETag mode or version file mode based on configuration
  • Smart Polling: Default auto-polling with configurable interval
  • Page Visibility Monitoring: Pauses detection when page is hidden, resumes when visible
  • Highly Customizable: Rich configuration options, supports custom callbacks and storage
  • Performance Optimized: Reduces unnecessary network requests

Get Started in Minutes

javascript
// Simple usage
const versionCheck = new VersionCheck();
versionCheck.start();

// Advanced configuration
const versionCheck = new VersionCheck({
  url: '/version.json',
  interval: 5 * 60 * 1000,
  message: 'New version detected, update now?',
  onUpdate: () => {
    if (confirm('New version detected, update now?')) {
      versionCheck.reload();
    }
  }
});
versionCheck.start();

Browser Support

Version Check JS works with all modern browsers, including:

  • Chrome
  • Firefox
  • Safari
  • Edge
  • Opera

License

MIT License

Based on MIT License