4 ms·
I found scrolling up and down the page to be very laggy--without much investigation, it appears to be caused by the background image.
by pero 16y ago
I found scrolling up and down the page to be very laggy--without much investigation, it appears to be caused by the background image.
- Aaronontheweb 16y agoCould you let me know what browser you're using and what your machine specs are? You're not the first to report the issue, so I'm trying to see where I should begin testing.
- mviamari 16y ago@aaronontheweb Are you tying the resize of the background directly to the window resize or scroll event? You might want to consider using setTimeout(customResizeFunc, 100) just to keep the scroll event from blocking
- Aaronontheweb 16y agoI'm using some CSS hacks to do it. Here's what that code looks like: body { font-size: 75%; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: #232323; background: url('img/styles/blue_bg.jpg') no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/img/styles/blue_bg.jpgg', sizingMethod='scale'); -ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/img/styles/blue_bg.jpg', sizingMethod='scale')"; background-color: #00689c; height: 100%; }