-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CPU load on https://markojs.com #101
Comments
Hm, this sounds eerily familiar to marko-js/marko#1715. Do your performance devtools show if it’s running a lot of style recalculation? |
I haven't yet been able to detect anything like "style recalculation". However, when I viewed markojs.com in Safari with devtools open, it climbed from ca. 90% up to 100% CPU. As soon as I closed the devtools (indicated by the vertical arrow in the included screen dump from Activity Monitor), however, the CPU load started climbing to over 120%. |
Yep, can confirm: I uploaded the trace here for the Marko maintainers: markojs.com-recording.json.gz |
Still an issue in Safari 15.5. Its DevTools report:
After investigating, it looks like these are the culprits. When I turned off all of them in the Safari DevTools, the Average CPU dropped to 3.8%. Code Elimination animation @keyframes pulse-red {
0% {
box-shadow: 0 0 0 0 rgba(255, 50, 82, 0.9);
}
100% {
box-shadow: 0 0 0px 90px rgba(255, 50, 82, 0);
}
}
Image placeholder popping in.demo-page-lowres {
filter: blur(1em) grayscale(0.6);
opacity: 0.3;
} Maybe we should have two Demo progress bar<div.demo-page-progress style={ transform: `scaleX(${Math.min(1, input.progress * (input.buffered ? 1 : 1/0.9))})` }/> The worst part is this progress bar doesn’t even display right now — it’s missing either It looks like doing the |
When I go to https://markojs.com in Safari (14.1.2), the CPU load on my MacBook Air goes up above 100%. If I use the Brave browser, the CPU load is closer to 25%. Still too much.
The text was updated successfully, but these errors were encountered: