I'm trying to use this lazy loading plugin in a backbone app, I adapted the template to work with the plugin and called and the plugin script in but when I update the browser it seems that all the views images are already rendered, so the lazy loading isn't working properly.
Here is the Fiddle: http://jsfiddle.net/9R9zU/55/
I'm using the lazy loading here:
app.BookView = Backbone.View.extend ({
tagName: 'div',
className: 'book',
template: _.template( $( '#bookTemplate' ).html()),
render: function() {
this.$el.html(this.template(this.model.toJSON()));
this.$el.find("img").unveil();//lazy loading
return this;
}
});