Get started with riloadr CDN
MIT licensed
Riloadr: library for automatic, graceful page reloads via navigation event interception.
Tags:- riloadr
- rwd
- responsive
- image
- images
- loader
- lazy
Stable version
Copied!
How to start using riloadr CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with riloadr CDN - cdnhub.io</title>
<script src="https://cdn.cdnhub.io/riloadr/1.5.3/riloadr.min.js"></script>
</head>
<body>
<button id="reload">Reload Script</button>
<script>
const button = document.getElementById('reload');
button.addEventListener('click', () => {
// Reload the script
riloadr.reload(function() {
console.log('Script reloaded successfully!');
});
});
// Initial script logic
console.log('Initial script logic executed.');
</script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!