Support » Plugin: Lazy Load Optimizer » Image alt attribute

  • Was running a page audit and it reported there were images with empty alt attributes. All the images did have alt content but they were not being seen on a page audit.

    Looks like the issue is the images have a different class for loaded and non-loaded. The non-loaded images get their alt attribute set to data-alt. When source code is viewed (not loaded) they all appear as data-alt but when ‘inspected’ (loaded) show as ‘alt’.

    As far as aware data-alt attribute is not recognised/supported by search bots and could be detrimental to search rankings if all the images appear to have empty alt attributes.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Processby

    (@processby)

    The alt attribute, like the src attribute, is added using the JavaScript. Google understands JavaScript, otherwise it would not advise using lazy loading images.

    @processby, can’t you add data: image in the src attr temporary instead?

    • This reply was modified 8 months, 3 weeks ago by Darko G..
    • This reply was modified 8 months, 3 weeks ago by Darko G..
    • This reply was modified 8 months, 3 weeks ago by Darko G..
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Image alt attribute’ is closed to new replies.