How to Make Firefox Auto-Refresh on File Change

How do I make Firefox auto-refresh on file change?

Live.js

From the website:

How?
Just include Live.js and it will monitor the current page including local CSS and Javascript by sending consecutive HEAD requests to the server. Changes to CSS will be applied dynamically and HTML or Javascript changes will reload the page. Try it!

Where?
Live.js works in Firefox, Chrome, Safari, Opera and IE6+ until proven otherwise. Live.js is independent of the development framework or language you use, whether it be Ruby, Handcraft, Python, Django, NET, Java, Php, Drupal, Joomla or what-have-you.

It has the huge benefit of working with IETester, dynamically refreshing each open IE tab.

Try it out by adding the following to your <head>

<script type="text/javascript" src="http://livejs.com/live.js"></script>

Auto-reload browser when I save changes to html file, in Chrome?

I assume you're not on OSX? Otherwise you could do something like this with applescript:

http://brettterpstra.com/watch-for-file-changes-and-refresh-your-browser-automatically/

There is also a plugin for chrome called "auto refresh plus" where you can specify a reload every x seconds:

https://chrome.google.com/webstore/detail/auto-refresh-plus-page-mo/hgeljhfekpckiiplhkigfehkdpldcggm?hl=en

Firefox add-on development: automatically reload add-on after code is changed

Mozilla provides a command line tool called web-ext that allows you to run your extension in Firefox and reload automatically your code when the source files are modified.
The tool has many useful options that you can use to suit your needs, so I would recommend checking out the documentation page on MDN.

To get started quickly:

npm install --global web-ext
cd /path/to/your/webextension
web-ext run

Disable auto refresh when switching to Responsive Design Mode in Firefox?

There are two options Reload when touch simulation is toggled and Reload when user agent is changed that cause the page to reload automatically when enabled.

If you disable those two options the page should not get reloaded when switching to Responsive Design Mode.

Toggle options for page reload in Responsive Design Mode



Related Topics



Leave a reply



Submit