Poor performance of Chrome using background-size: cover

后端 未结 1 848
执笔经年
执笔经年 2020-12-11 11:34

I need to cover background in my site and I always see lags/slugs on mouse over or any other action. Do you have any idea how to fix this issue? I have a wo

相关标签:
1条回答
  • 2020-12-11 11:58

    It appears webkit doesn't cache the resized image and renders it every time, causing the lag.

    You're out of luck when it comes to background-size in chrome.

    I've seen people do it with Javascript / jQuery. See http://srobbin.com/jquery-plugins/jquery-backstretch/

    0 讨论(0)
提交回复
热议问题