Git Product home page Git Product logo

Comments (8)

konradkalemba avatar konradkalemba commented on September 26, 2024

Can you provide some more info, e.g. using Chrome's CPU Profiler?

from korona.ws.

jakub-zawislak avatar jakub-zawislak commented on September 26, 2024

Macbook Pro 2015 13", macOS 10.15.3

I have this issue in Safari, Chrome, Vivaldi, Opera. Only in Firefox works normally

Profile-20200314T132141.json.zip

from korona.ws.

jakub-zawislak avatar jakub-zawislak commented on September 26, 2024

There is a problem with the pulse animation of markers. If you disable it, the issue is gone.

I have tested animation of opacity instead of transform: scale but the issue remains. So the best would be to disable animations.

I have also tested it on Chrome on Windows, there is the same problem.

from korona.ws.

konradkalemba avatar konradkalemba commented on September 26, 2024

@jakub-zawislak Thanks for more info. I wouldn't suspect that CSS animations are the cause. I'll look into it.

from korona.ws.

kkostepski avatar kkostepski commented on September 26, 2024

I can investigate this issue (for me CPU usage is also very high).

from korona.ws.

konradkalemba avatar konradkalemba commented on September 26, 2024

@kkostepski That would be great, thanks! 👍

from korona.ws.

kkostepski avatar kkostepski commented on September 26, 2024

I investigated the issue and apparently there is a problem with CSS animations performance.

  1. I tried used tricks like transform: translateZ(0) to force use GPU or a property will-change: transform (more info here: https://developer.mozilla.org/en-US/docs/Web/CSS/will-change and https://www.smashingmagazine.com/2016/12/gpu-animation-doing-it-right) but no result.
  2. I also tried to implement animations based on Web Animations API, but I couldn't do that in combination with leaflet.markercluster I was not possible.

In my opinion the best thing to do is just disable animations. Why? Because we expect increasing number of infections. There will be more markers on the map and the animation will look ugly.

from korona.ws.

konradkalemba avatar konradkalemba commented on September 26, 2024

@kkostepski I will probably have to disable it. Thanks for your analysis. :)

from korona.ws.

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.