Skip to content

Latest commit

 

History

History
58 lines (37 loc) · 1.14 KB

README.md

File metadata and controls

58 lines (37 loc) · 1.14 KB

AutoReloader.js

auto refresh your browser, for developers

what is this ?

this auto refresh browser library.
please open index.html via HTTP
for example http://localhost/AutoReloader-js/index.html
and edit index.html !

usage

put below code to page bottom

<script type="text/javascript" src="auto-reloader.js"></script>

multiple file watching

want to watching css, js and swf ? please use AutoReloader.add()

<script type="text/javascript">
  AutoReloader.add(
    "style.css", "index.js", "animation.swf"
  );
</script>

watch all CSS files

when use AutoReloader.watchCSS(), all CSS files are watched.

<script type="text/javascript">
  AutoReloader.watchCSS();
</script>

watch all JavaScript files

when use AutoReloader.watchJS(), all JavaScript files are watched.

<script type="text/javascript">
  AutoReloader.watchJS();
</script>

browser compatibility

  • Internet Explorer 6-8
  • Firefox
  • Google Chrome
  • Safari
  • Mobile Safari

source code on GitHub

AutoReloader-js

follow me

@tanabe