Last active
December 15, 2015 00:49
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Allow enough time for the page to fully load. 500ms might be far too fast for complex pages with many elements.