• Resolved Drake

    (@marcoragogna)


    The HTML loading attribute is not valid according to W3C standard.

    Error: Attribute loading not allowed on element img at this point.

    <img loading="lazy" src="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0…s.com/wp-content/uploads/2019/03/image.jpg" />

    Is it possible to change loading to data-loading in the next releases?

    Thank You

    • This topic was modified 4 years, 6 months ago by Drake.
    • This topic was modified 4 years, 6 months ago by Drake.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor WP Rocket

    (@wp_rocket)

    the loading attribute is a new attribute introduced in Chrome 76 to add support for native lazyload in the browsers. Since it’s new, the validator is not yet updated to support it, but it’s a completely valid attribute that is needed to be able to support both native lazyload and the JS lazyload system depending on the browser used.

    Thread Starter Drake

    (@marcoragogna)

    Yes, I read about this announcement from Google yesterday. Seems good then thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘W3C Compatibility’ is closed to new replies.