by lhecker · 11y ago · 0 comments
The "stylesheets/styles.css" file contains the following rule at the beginning:
body {
...
background: url('data:image/png;base64,...') fixed;
}
If you remove the "fixed" attribute it's... fixed! (Oh, the irony...) .wrapper::before {
content: ' ';
position: fixed;
height: 100%;
width: 100%;
top: 0;
left: 0;
background: url('data:image/png;base64,...');
will-change: transform;
}
Tested with Chrome dev tools, the repaint troubles disappear. Unfortunately only supported in Chrome, Firefox, and Opera. But just checked, and at least in Chrome the performance problem goes away with this solution even with the will-change removed. YMMVIt's not a Mac thing like other commenters suspect---I'm on Linux, using Firefox.