Support » Plugin: Lazy Load by WP Rocket » Broken pixel placeholders

Viewing 5 replies - 1 through 5 (of 5 total)
  • Peter Toi

    (@petertoi)

    Am having the same issue. Currently using v2.0.3.2 of the plugin on WordPress v5.0.3.

    Plugin Contributor WP Rocket

    (@wp_rocket)

    Hi,

    It’s an oversight indeed, and we’re going to fix this in the next version of the plugin

    roam92

    (@roam92)

    Thanks very much! Any idea when that might be out?

    If not soon, then in the meantime, is there a quick fix/patch that we can apply to the existing code?

    Thank you again.

    Plugin Contributor WP Rocket

    (@wp_rocket)

    Yes there is, you can use the following code:

    function change_rocket_lazyload_placeholder() {
    	return "data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201%201'%3E%3C/svg%3E";
    }
    add_filter('rocket_lazyload_placeholder', 'change_rocket_lazyload_placeholder');
    roam92

    (@roam92)

    Great, thanks for that!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Broken pixel placeholders’ is closed to new replies.