• Resolved slz

    (@slz)


    Hi,

    If I have an img tag with a return in it, the img isn’t being lazily loaded.

    For example, this doesn’t work:

    <img src=
    "http://example.com/img.jpg" />

    Nor does this:

    <img
    src="http://example.com/img.jpg" />

    It’s likely due to the regex not being written to expect this.

    If everything is on 1 line, it works fine:
    <img src="http://example.com/img.jpg" />

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

Viewing 1 replies (of 1 total)
  • Plugin Author bjornjohansen

    (@bjornjohansen)

    I have no idea why anyone would end up with returns or newlines in their img tag, but since fixing this was just a matter of adding a modifier to the regexes, I did that and released version 0.7.3 just now.

Viewing 1 replies (of 1 total)
  • The topic ‘img tags with returns in them aren't being lazily loaded’ is closed to new replies.