• Resolved Vladi

    (@loveinlions)


    Hi Team,

    Thank you for your plugin. How can I exclude certain images from lazyloading?

    I have a plugin that generates quizzes with image answers. Those images, when being lazyloaded, do not load properly unless I deactivate your plugin.

    I would like to keep your plugin working but for that I need to exclude “asq-image” images from lazyloading.

    What is the best way to do it?

    Thank you,
    V

Viewing 3 replies - 1 through 3 (of 3 total)
  • roam92

    (@roam92)

    Plugin Contributor WP Rocket

    (@wp_rocket)

    Hi @loveinlions ,

    Alfonso from WP Rocket here. Thank you for contacting us! 😊

    Thank you @roam92 for your assistance here.

    You have several options to exclude images from being lazyloaded:

    – You can simply add a data-no-lazy="1" property in your img or iframe tag.

    – You can also use the filters rocket_lazyload_excluded_attributes or rocket_lazyload_excluded_src to exclude specific patterns.

    – For iframes, the filter is rocket_lazyload_iframe_excluded_patterns

    I hope this information helps!
    Let me know if you need any further assistance, I am happy to help. 😉

    Best Regards,

    Thread Starter Vladi

    (@loveinlions)

    Thank you @roam92 and @wp_rocket

    I appreciate your help.

    V

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Excluding Specific Images form Lazy Loading Issue’ is closed to new replies.