Comments (8)
Can you provide some more info, e.g. using Chrome's CPU Profiler?
from korona.ws.
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.
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.
@jakub-zawislak Thanks for more info. I wouldn't suspect that CSS animations are the cause. I'll look into it.
from korona.ws.
I can investigate this issue (for me CPU usage is also very high).
from korona.ws.
@kkostepski That would be great, thanks! 👍
from korona.ws.
I investigated the issue and apparently there is a problem with CSS animations performance.
- I tried used tricks like
transform: translateZ(0)
to force use GPU or a propertywill-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. - 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.
@kkostepski I will probably have to disable it. Thanks for your analysis. :)
from korona.ws.
Related Issues (20)
- Adding English version HOT 3
- Map is not visible on production HOT 1
- Zakażenia dzienne HOT 8
- Zły tekst w tooltipach w polskiej wersji HOT 2
- Show estimated course from exmetrix on diagram HOT 3
- zakres dat na wykresie
- Include daily change by region HOT 4
- [bug] Invalid data on prod HOT 4
- Bug: Overlapping text in data sources tab HOT 2
- [Safari mobile] Bottom tabs renders incorrectly
- dzienny wykres z dnia 30.03 zawiera blad HOT 1
- Create image to be added to sharing preview on FB (og:image property) and other social media HOT 1
- Chart does not present the current amount of recovered people HOT 5
- Daily change chart is misleading
- Overall/Daily chart's bars are not sorted by date HOT 1
- [Feature Request] Deltas for 3 hidden statistics HOT 1
- Liczba przebadanych osób
- Error: clientAppId must be set to a non-empty string HOT 1
- Numbers don't fit on screen anymore
- Redirect to some other source of the data HOT 2
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 korona.ws.