Chrome slow scrolling with fixed position elements

后端 未结 5 1050
情话喂你
情话喂你 2020-12-04 10:40

On my I have a fixed DIV at the top, 3 fixed tabs and a fixed div at the bottom (this will only be shown when logged in - in the future).

I am getting poor scrolling

5条回答
  •  时光说笑
    2020-12-04 11:25

    There are a number of ways you could speed up this front end, try out the PageSpeed Insights Chrome plugin for some ideas. Personally I'd recommend rebuilding this front end with the same design on top of a framework like Twitter's Bootstrap, but if you'd like some specifics on this front end:

    • As you say, the positioning of your header bar is causing the most time in terms of CSS rendering (CSS stress test results). Get rid of that big image that's in there and replace it with a 1px wide background image. You're also resizing images like your logo (and every other image in this header) unnecessarily, replace with actual-size versions
    • You could save a lot of bytes transferred by optimizing all your content images

提交回复
热议问题