Does it makes sense SEO wise to use “img data src” instead of “img src” and “alt”. I mean the image is no more a content which Google can understand and take into account, right ?
Quoted from somewhere : data-* attributes only have meaning for JS scripts.
…data-src to provide additional information that can be used by JavaScript for improving the users’ experience.
It seems you cannot use alt with data-src. Based on the above, my point is that my images will be “invisible” ?
Does the browser understand data-src to load the image? (That’s a genuine question.)
What of visitors without JavaScript? Does the site still work for them, without the “improved” experience? If not, I’d think again about this approach.
Like I said in my initial post, am concerned about the SEO. I have a photography website (my own pictures). Having them being loaded and not properly indexed by google is a major issue for me.
Thanks but my requirement is a bit more specific. Since I have pictures of different sizes, I need to load the image in masonry style (using JS) together with Lazy loading.
Oh I forgot to mention that my photos (dynamic) are loaded by a script. Else I would have use grid css to display static images in masonry. And for sure Lazy loading js would have load correctly.