mockko / livereload

LiveReload applies CSS/JS changes to Safari or Chrome w/o reloading the page (and autoreloads the page when HTML changes)
http://livereload.com/
1.18k stars 56 forks source link

preventing reload when an unrelated css file is changed #47

Closed naltatis closed 13 years ago

naltatis commented 13 years ago

At the moment there is a global fallback to reloading the whole page if a file is changed that has nothing to do with the current page:

https://github.com/mockko/livereload/blob/master/src/core.js#L153

What are the thoughts behind that? At least for CSS I can't think of any reason why I want to do this. Could you please make this behavior configurable?

NV commented 13 years ago

Yesterday this behavior has been changed. src/core.js#L137-148. Instead of reloading the whole page LR just reloads all stylesheets.

The long term plan is to have "strict mode". In "strict mode" LR will do nothing when filename on file-system does not match to the path of css/js/html on the page.

naltatis commented 13 years ago

Perfekt!