Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I like how CSS edit has a live preview which updates after you edit a CSS file. I've been doing similar with Firebug and tweaking CSS however that is only temporary. I usually edit files in Textmate than cmd+tab to the browser and cmd+r to refresh.

I was wondering if it would be possible to have Firefox watch CSS files in a document, and update the document when they get saved? This would mirror the CSS edit live preview functionality and eliminate the need for an extra app. Not sure how the plugin would have to work, this is just daydreaming.

Thanks a lot if you have any ideas

share|improve this question
up vote 0 down vote accepted

Its not automatic, but you might look at CSS Reloader. Gives you a keyboard command to only refresh the CSS.

share|improve this answer
Holding down the right-Shift key while clicking on the Reload button should cause the CSS to be reloaded (and everything else that's cached). – Randolf Richardson Mar 3 '11 at 18:27
Many thanks Nate, I think this is the closest it's going to get. Would be cool if there was a plugin that could watch a file and update automatically to save the tabbing and refreshing, maybe I'll suggest it to the plugin developer. – Ben Wise Mar 3 '11 at 21:11
Yes, at least on Windows (I presume other OSes as well) there is the FileSystemWatcher API, which provides a way to do just that, call a method when a file changes. – Nate Mar 3 '11 at 21:16

Opera can do something like this -- right-click on the web page, select "Reload every..." and choose the number of seconds (or specify a custom time period in seconds, minutes, hours, etc.).


Be sure to test your code in the major web browsers. An alphabetical list of the free ones can be found here:

  Resource - Web browsers

share|improve this answer
Nice function! Yeah I test in all the browsers but develop mostly in Firefox. – Ben Wise Mar 3 '11 at 21:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .