Resizing and optimizing images and loading them into CDN vs normaly linking them from the original CDN with default image size

后端 未结 1 1696
悲&欢浪女
悲&欢浪女 2021-01-27 16:56

We have a site on which we show various products from our providers. Providers provide us with images from their CDN\'s. The problem is that we have a smaller image frame than t

1条回答
  •  囚心锁ツ
    2021-01-27 17:43

    Resizing the images to the desired size is fantastic. Go ahead and leave the HTML dimensions as that helps rendering. Be careful about oversharding - you should only shard across 2-4 domains - most studies show that 2 is the best. But the #1 fix you can probably do is to only load the images above the fold, and lazy load (using JavaScript) the other images when the user scrolls. (Y

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