Korvo
Korvo

Reputation: 9754

lazyload images - index images in the search engines

I believe that Google displays the DOM also modified by Javascript. Look I used the tool Fetch as Google/Bing/Baidu

Look at the results:

Without my jquery-plugin and noscript (ie pure HTML):

http://img845.imageshack.us/img845/2632/webpagethumbnail1.jpg


With javascript and noscript:

http://img138.imageshack.us/img138/3485/webpagethumbnail.jpg

note: The javascript that showcased images and manipulated the DOM.

LIB Javascript

Download and test-case: https://github.com/brcontainer/defer-images/

Question:

Upvotes: 1

Views: 1106

Answers (1)

unor
unor

Reputation: 96707

The search-engine will index the image grey.gif. It will never know about example.jpg.

data-* attributes are valid in HTML5 (only).

PS: Don't forget the alt attribute.

Upvotes: 2

Related Questions