WordPress.org

Ready to get started?Download WordPress

Forums

BJ Lazy Load
the_content filter may get run more than once, placeholder becomes image (1 post)

  1. lkraav
    Member
    Posted 2 months ago #

    I discovered why in some locations on the page lazy image loading script part was working, classes were there, but images were not appearing when in viewport. Turns out that with various page building techniques it's possible to get content filters run on any given element set more than one time. Yes, the world isn't perfect.

    Solution was to simply add "lazy" to the Lazy Load disable list, so then the BJLL could ignore what it has already processed.

    I'm wondering if this shouldn't be built in as a safety mechanism. Probably solves a lot of "images not appearing" threads here at one fell swoop.

    https://wordpress.org/plugins/bj-lazy-load/

Reply

You must log in to post.

About this Plugin

About this Topic