Does “display:none” prevent an image from loading?

前端 未结 17 1889
再見小時候
再見小時候 2020-11-22 05:13

Every responsive website development tutorial recommends using the display:none CSS property to hide content from loading on mobile browsers so the website load

17条回答
  •  [愿得一人]
    2020-11-22 05:40

    we're talking about images not loading on mobile, right? so what if you just did an @media (min-width: 400px){background-image:thing.jpg}

    wouldn't it then only look for the image at above a certain screen width?

提交回复
热议问题