document.styleSheets[0].reload()
Reload first stylesheet
document.styleSheets.reload()
Reload all stylesheets
document.styleSheets.start_autoreload(2000)
Start reloading all stylesheets every two seconds.
document.styleSheets.stop_autoreload()
Stop auto-reloading all stylesheets.
|
Besides the bookmarklet you can include css_auto-reload.js directly into your page.
Just for testing this page contains random-css.heroku.com/colors.css.
Every time you load that stylesheet, you will get different colors. So, click on links on the left side and see how
it works.
|