JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
auto-reloader.js
index.html
style.css

README.md

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