Looks cool, but—
The website lags on my laptop. Scrolling lags. Why does scrolling lag? How?
What's going on with the internet these days...
The website lags on my laptop. Scrolling lags. Why does scrolling lag? How?
What's going on with the internet these days...
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...)It's not a Mac thing like other commenters suspect---I'm on Linux, using Firefox.
.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. YMMVCould be a browser bug on your system? (I see no lag of any kind)
http://htty.github.io/htty/javascripts/scale.fix.js
which appears to add a 'gesturestart' event, and a weird conditional comment at the bottom that shouldn't appear for non-IE, but whose condition is to explicitly run the function defined in that script in non-IE browsers...