Comments (9)
I'm not sure of all the exact behaviors, but browsers do sometimes suspend or slow down js execution when a window or tab is inactive. It could be dependent on your particular system's available resources or other variable QoS types of considerations. Nothing we can really do about it in the plugin.
I'd suggest just getting quick with ⌘+tab. You could also try various things to see if they have any impact like seeing if Chrome Canary behaves any differently, reducing open windows/tabs, or plugging in to a power source if it's a laptop.
from auto-reload-brunch.
Ok, thanks!
from auto-reload-brunch.
this is not a single issue — we had this one too I think. the solution is simple AFAIR
from auto-reload-brunch.
Yes, I've seen this also. I have a quick solution, but the margin on this notebook in not big enough for me to include it.
from auto-reload-brunch.
// at the bottom of `stylesheet` method
// hack to force page repaint in latest Chrome
var el=document.body; el.style.display='none'; el.offsetHeight; el.style.display='block';
I wonder if there's a simpler solution.
from auto-reload-brunch.
Well, let's give it a shot then: 2c10830
@trafnar try installing the latest master branch (npm install brunch/auto-reload-brunch
) and let us know if it resolved the issue for you
from auto-reload-brunch.
That works! I can't tell you how happy this makes me :)
from auto-reload-brunch.
Solution wasn't working for me ... It needed some modification ...
setTimeout(function(){
var el = document.body;
var bodyDisplay = el.style.display || 'block';
el.style.display = 'none';
el.offsetHeight;
el.style.display = bodyDisplay;
},5);
from auto-reload-brunch.
Go ahead and submit a PR
from auto-reload-brunch.
Related Issues (20)
- Support configuration for WebSockets SSL HOT 13
- Is it possible to have synchronised cross-device live reloading? HOT 5
- Chrome/Firefox doesn't auto refresh on update HOT 13
- Auto reload with Flo ? HOT 2
- Error: Failed to construct 'WebSocket': The URL 'ws://:9486' is invalid. HOT 2
- Typo breaks auto-reload.js for CSS
- Causes JSHint to fail
- Dependency ws 0.7.2 broken with Node v4.x HOT 1
- Custom file extensions HOT 1
- Release 2.2.0 HOT 1
- Getting a WebSocket error in Chrome HOT 1
- It could not work with brunch watch --server ? HOT 2
- using auto-reload with nginx and docker HOT 1
- [Webkit Browser] refresh in 2 time HOT 2
- don't stop reloading with latest brunch 2.9.1 HOT 1
- auto-reload-brunch hack for backend express
- Documentation suggestion
- ws: causes an error on HTTPS websites. Should be wss: HOT 4
- Package Release
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auto-reload-brunch.