Skip to content

tanabe/AutoReloader-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published