luis-almeida / unveil

A very lightweight jQuery plugin to lazy load images
4.15k stars 675 forks source link

Suggestions how to hide broken image links? #91

Open inspire22 opened 9 years ago

inspire22 commented 9 years ago

I normally do this, but not sure how to fit it into unveil - suggestions?

 $("img").error -> $(@).hide()
spacedotworks commented 9 years ago

You could consider give an empty alt="" for all images to do so.

inspire22 commented 9 years ago

Sorry, how would that help?