Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

would lazy-loading img src negatively impact SEO

I'm working on a shopping site. We display 40 images in our results. We're looking to reduce the onload time of our page, and since images block the onload event, I'm considering lazy loading them by initially setting img.src="" and then setting them after onload. Note that this is not ajax loading of html fragments. the image html along with the alt text is present. it's just the image src is deferred.

Does anyone have any idea as to whether this may harm SEO or lead to a google penalty box now that they are measuring sitespeed?

like image 838
Joe Hanink Avatar asked Mar 26 '11 07:03

Joe Hanink


People also ask

Does lazy loading images affect SEO?

Lazy loading is actually a pretty awesome SEO hack. It refers to the technique of waiting to load the images on a website until they are needed. The images arent loaded until they show up on the users screen. Once the user scrolls to the part of the page containing the image, the image appears.

Does lazy loading affect performance?

Lazy-loading images and video reduces initial page load time, initial page weight, and system resource usage, all of which have positive impacts on performance.

What would be the effect of adding loading lazy to the IMG tag?

Using browser-level lazy-loading # This attribute can be added to <img> elements, and also to <iframe> elements. A value of lazy tells the browser to load the image immediately if it is in the viewport, and to fetch other images when the user scrolls near them.

Should you lazy load images?

And now the question is: when it's recommended to use lazy loading? You should always use lazy loading for the images below the fold. As we explained, lazy loading will reduce the real and perceived loading time. User experience will benefit from it — and you users will thank you.


1 Answers

Images don't block anything, they are already lazy loaded. The onload event notifies you that all of the content has been downloaded, including images, but that is long after the document is ready.

It might hurt your rank because of the lost keywords and empty src attributes. You'll probably lose more than you gain - you're better off optimizing your page in other ways, including your images. Gzip + fewer requests + proper expires + a fast static server should go a long way. There is also a free CDN that might interest you.

I'm sure google doesn't mean for the whole web to remove their images from source code to gain a few points. And keep in mind that they consider anything under 3s to be good loading times, there's plenty of room to wiggle before resorting to voodoo techniques.

like image 142
Ricardo Tomasi Avatar answered Oct 02 '22 02:10

Ricardo Tomasi