Skip to content

Instantly share code, notes, and snippets.

@perpetual-hydrofoil
Last active December 15, 2015 00:49
Show Gist options
  • Save perpetual-hydrofoil/5175292 to your computer and use it in GitHub Desktop.
Save perpetual-hydrofoil/5175292 to your computer and use it in GitHub Desktop.
Reloader.html simply reloads / every 500 milliseconds (.5 sec) .. like ReloadEvery but without a plugin.
<html>
<body style="padding:0; margin:0;">
<!-- reloader.html -->
<iframe id=reloader src="/" style="margin:0;border:none;padding:0;height:100%;width:100%"></iframe>
<script>
(function test() {
document.getElementById('reloader').src = document.getElementById('reloader').src;
setTimeout(test, 500); // 500ms = 1/2 second
})();
</script>
</body>
</html>
@perpetual-hydrofoil
Copy link
Author

Allow enough time for the page to fully load. 500ms might be far too fast for complex pages with many elements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment