Is it better to use images or CSS to keep performance of a webpage or application as high as possible?

后端 未结 3 418
旧时难觅i
旧时难觅i 2020-12-18 19:18

My project\'s creative designer and I have had some amicable disagreements as far as whether it is better to use slices of his comp or rely on the browser\'s rendering engin

3条回答
  •  猫巷女王i
    2020-12-18 19:59

    In general, if it can be done with CSS, definitely skip the image. If for no other reason it's easier to maintain.

    HOWEVER, a complex gradient is likely where I'd give in and throw in an image. Having recently implemented some CSS gradients, it is a bit of a mess right now.

    Ultimately, Fabian Barney has the correct answer. If it's an issue of performance, you need to measure things. In the grand scheme of things, this is likely low on the performance issues to dwell on.

提交回复
热议问题