Our server frequently goes down because of loading time because of Toolset plugins combined with featured images. Have been in contact with the server host, and they said we should either disable plugins, or try to do something about the featured images. Since our website is completely run by Toolset, we can`t disable the plugins.
Basically all our featured images on front page are set to 750px wide because they need to fit the screen size on ipad. However, mostly of the featured images does not reach 750px at all. Our articles are build up with displaying 3 items, and are divided up with ads or other parts. Please see attachments and code below:
So, as this states, the first article in each view is small on medium and large screen, and bigger on ipad and mobile. Those images are around this size:
Large - 260px
Medium - 215px
Small - 540px
Extra-small - 715px
The last 2 articles in each view are behaving different. This does not vary alot, but 125px goes to waste here aswell:
Large - 260px
Medium - 215px
Small - 250px
Extra-small - 340px
This means alot of image sizes are overkill. Since image are twice as big as they need to be on large screen, we can actually reduce the image size of 50% by making the images responsive according to the screen size.
So my question is, how do we solve this problem? Is there a way we do not resize, but load different images on different screen sizes?
The problem is that they are oversized. They are responsive in terms of fitting well on mobile, tablet and desktop, but they are not responsive in terms of the image size since they are twice as big (in kB) as they need to be.
Testet out the plugin and the images are still oversized. But I think I am not explaining it good enough. When looking into the code it looks like thumbnails are being created, but only one show no matter what screen width it is.
Example of big image on desktop. The 750x501 is being loaded here. Please see screenshot.
Ok so i'm a little bit confused, so essentially after looking at this you want our shortcode to load a different image size on mobiles correct?
Loading different image sizes won't be possible unless you have some script to check whats the browser screen size. The responsive css reduces the images display size based on the screen size but that doesn't change their loaded dimensions.
Also since you're displaying the image straight from what is stored it should just display the uploaded dimension.