5 ms·
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 HE
by ELV1S 15y ago
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.
- benatkin 15y ago> Live.js uses polling. It sends XHR HEAD request every second. The horror!
- hnwh 15y agoIt is horror when you forget about it, and push it up to production
- benatkin 15y agoHas 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.