GithubHelp home page GithubHelp logo

Comments (9)

es128 avatar es128 commented on August 15, 2024

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.

trafnar avatar trafnar commented on August 15, 2024

Ok, thanks!

from auto-reload-brunch.

paulmillr avatar paulmillr commented on August 15, 2024

this is not a single issue — we had this one too I think. the solution is simple AFAIR

from auto-reload-brunch.

shreeve avatar shreeve commented on August 15, 2024

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.

paulmillr avatar paulmillr commented on August 15, 2024
// 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.

es128 avatar es128 commented on August 15, 2024

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.

trafnar avatar trafnar commented on August 15, 2024

That works! I can't tell you how happy this makes me :)

from auto-reload-brunch.

andrejd avatar andrejd commented on August 15, 2024

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.

es128 avatar es128 commented on August 15, 2024

Go ahead and submit a PR

from auto-reload-brunch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.