Support » Plugin: Lazy Load » lazyloaded PNG images have additional code

  • Hello,

    When lazy loading for images is activated and I check the code for PNG images, then I can see this code:

    <img title="The Division 2" class="lfg-game-td2 lazyloaded" src="https://mydivision.net/img/content/finder/i/game-td2.png" http:="" www.w3.org="" 2000="" svg'%20viewbox="0%200%2048%2048" %3e%3c="" svg%3e'="" width="48" height="48" alt="The Division 2" data-lazy-src="https://mydivision.net/img/content/finder/i/game-td2.png" data-was-processed="true">

    I don’t think that this part should be there:

    http:="" www.w3.org="" 2000="" svg'%20viewbox="0%200%2048%2048" %3e%3c="" svg%3e'=""

    This seems to have something to do with SVG images, but that’s not even valid code. Please can you fix this?

    • This topic was modified 1 year, 8 months ago by Andrew Nevins. Reason: Removed profanity
Viewing 5 replies - 1 through 5 (of 5 total)
  • I have seen the same thing. Please fix this issue because it makes all pages with these errors not W3C compliant.

    Plugin Contributor WP Rocket

    (@wp_rocket)

    Hi,

    What’s the original HTML code for the image(s) concerned?

    Hi!

    This is the original code:
    <img title="The Division 2" class="lfg-game-td2" src="https://mydivision.net/img/content/finder/i/game-td2.png" width="48" height="48" alt="The Division 2">

    This the result with the plugin being active:
    <img title="The Division 2" class="lfg-game-td2 lazyloaded" src="https://mydivision.net/img/content/finder/i/game-td2.png" http:="" www.w3.org="" 2000="" svg'%20viewbox="0%200%2048%2048" %3e%3c="" svg%3e'="" width="48" height="48" alt="The Division 2" data-lazy-src="https://mydivision.net/img/content/finder/i/game-td2.png" data-was-processed="true">

    Page where it happens:
    https://mydivision.net/the-division-group-finder/

    • This reply was modified 1 year, 8 months ago by jackennils.
    Plugin Contributor WP Rocket

    (@wp_rocket)

    Ok I see, the issue will be fixed in the next version of the plugin.

    Great, thanks a lot! đŸ™‚

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘lazyloaded PNG images have additional code’ is closed to new replies.