Lazy Load and image size

[ad_1]

Hello @guidotg,

I have reviewed the reported issue and it appears to be caused by a conflict with the slider plugin you are using. This is most likely due to the fact that the RoyalSlider plugin offers its own lazy load feature. It is currently disabled but according to my tests, it still seems to interfere when other plugins are trying to lazy load the slider images. I tried tweaking the slider settings (image size, scaling, etc.) but with no success. With that being said, you may consider simply using the RoyalSlider built-in lazy load option.

Regards,
Dimo

Unfortunately, I cannot use built-in lazy load from RoyalSlider since the plugin does not use alternate text for the images with lazy load enabled.
I will try to find a workaround and maybe tweak the plugin source code. Can you tell me more about the conflict between the two plugins?
Thanks!
Guido

Hello @guidotg,

I checked the site, and you should be able to correct this by excluding the class of your slider. This way, however, the slider images won’t be lazy-loaded, but the plugin caches them.

You can go to your admin page >> SG Optimizer >> Media >> Exclude CSS Classes from Lazy Load.

You can add “rsImg” (without the quotes), which will exclude the slider images from our Lazy load, and they will load correctly.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer