Wednesday, 21 August 2013

Using lazy loading with Backbone

Using lazy loading with Backbone

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 it doesn't work. Here is the
jsfiddle:http://jsfiddle.net/swayziak/9R9zU/27/
The template:
<script id="bookTemplate" type="text/template">
<img
src="https://www.amrms.com/ssl/iftafoundation/bluepay/Images/Loading_Animation.gif"
data-src="<%= image %>"/>
<h2 class="bookTitle"><%= title %><h2>
</script>
And the script on document ready:
$(document).ready(function() {
$("img").unveil();
});
I don't know what's wrong with my code.

No comments:

Post a Comment