Lazy image loading with semantic markup
Asked Answered
I

2

2

I have a very image-rich site. To conserve bandwidth for users, I would like to lazy-load images as they enter the view-port. There are assorted jQuery plugins and similar that accomplish this. This comes at the price of placing the actual image url, not in the src attribute but someplace else. This makes the markup less nice, and worse, less intelligible for search engine crawlers.

Is there way to have both lazy image loading and semantic, search-engine-friendly markup?

Ib answered 16/4, 2013 at 5:12 Comment(0)
G
0

You do not need to put src of image somewhere else. There are a no. of plugins available. Check the following link http://www.appelsiini.net/projects/lazyload

Grouping answered 16/4, 2013 at 5:22 Comment(2)
That's not correct, the plugin you link to uses a placeholder in src and the actual url in the data-original attribute.Ib
Oh I see, Check this link if it could help you: webmasters.stackexchange.com/questions/26190/…Grouping
O
0

Note that now <img loading="lazy" is standardized, so you can just keep src as the actual source and everything works perfectly with semantics, more details at: How do you make images load lazily only when they are in the viewport?

Outfitter answered 21/4, 2020 at 9:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.