Live data from Hacker News

LiveReload: Reflect CSS Changes Instantly, with No Browser Reload

livereload.com

11–20 of 30 posts

Re: LiveReload: Reflect CSS Changes Instantly, with No Browser Reload

#11
post #8

Earlier quoted context omitted.

LiveReload should works on every browser that supports WebSockets. It should work on modern WebKit-based mobile browsers. Live.js uses polling. It sends XHR HEAD request every second. LiveReload monitors file changes using FSEvents (on Mac OS X) and inotify (on Linux). When the file modified, it pushes its path to the browser and reloads immediately.

> Live.js uses polling. It sends XHR HEAD request every second. The horror!

It is horror when you forget about it, and push it up to production

Re: LiveReload: Reflect CSS Changes Instantly, with No Browser Reload

#12
post #11

Earlier quoted context omitted.

> Live.js uses polling. It sends XHR HEAD request every second. The horror!

It is horror when you forget about it, and push it up to production

Has nothing to do with Live.js then. Isn't really even about a developer's forgetfulness when pushing to production. It would be about failure to set up different production and development environments, which can cause problems much worse than a wasteful AJAX call.

Re: LiveReload: Reflect CSS Changes Instantly, with No Browser Reload

#15

Could just use Google Chrome and test your changes with this file: C:\Users\Administrator\AppData\Local\Google\Chrome\User Data\Default\User StyleSheets\Custom.css Every time it is saved the changes are reflected on all open webpages instantly.

You have to reload the page then. Also, copy the changes from this file to your stylesheet.

Re: LiveReload: Reflect CSS Changes Instantly, with No Browser Reload

#17
post #4

I have a mac, but prefer to use just Guard and the browser extensions. Fortunately, that info is still available: https://github.com/mockko/livereload After all the time that's been put into the free version by others I wish livereload.com would have a prominent link to it. But I'm glad that the gem, which I don't use because https://github.com/guard/guard-livereload is easier to install, and the browser extensions a…

I will have a prominent link to guard. The site is very much alpha and has been built overnight. My plan is to deprecate the old livereload gem and point people who want a free/command-line version to guard-livereload.

Re: LiveReload: Reflect CSS Changes Instantly, with No Browser Reload

#18
post #3

The technology that drives this is undoubtedly very interesting, but what does this truly offer? What would be the practical application of this? Are there droves of people who could benefit from constantly changing css? Perhaps I'm just missing something rather obvious. If so, please help me.

Everyone who does web development benefits from this, starting with myself. Have your browser side-by-side with your editor, save your CSS, boom.

Re: LiveReload: Reflect CSS Changes Instantly, with No Browser Reload

#20
post #2

Look cool, let me know when there's a PC version.

On the other hand, there does not seem to be a way to contact a HN user unless you specify your email in your profile. Let's just hope “LR on Windows” will make it to HN home page some day too.
Post reply on HN