auto refresh your browser, for developers
this auto refresh browser library.
please open index.html via HTTP
for example https://localhost/AutoReloader-js/index.html
and edit index.html !
put below code to page bottom
<script type="text/javascript" src="auto-reloader.js"></script>
want to watching css, js and swf ? please use AutoReloader.add()
<script type="text/javascript">
AutoReloader.add(
"style.css", "index.js", "animation.swf"
);
</script>
when use AutoReloader.watchCSS(), all CSS files are watched.
<script type="text/javascript">
AutoReloader.watchCSS();
</script>
when use AutoReloader.watchJS(), all JavaScript files are watched.
<script type="text/javascript">
AutoReloader.watchJS();
</script>
- Internet Explorer 6-8
- Firefox
- Google Chrome
- Safari
- Mobile Safari