Skip to content

Commit 4009818

Browse files
committed
update document for preview
1 parent dc4320f commit 4009818

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.textile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,16 @@ h2. Advanced
3434

3535
h3. Plugin enabled with AJAX loaded content
3636

37-
<pre>$("img.lazy").lazyload();</pre>
38-
37+
<pre>
38+
$("#container").one("click", function() {
39+
$("#container").load("images.html", function(response, status, xhr) {
40+
$("img.lazy").lazyload();
41+
});
42+
});
43+
</pre>
44+
<pre><img class="lazy" data-original="img/example.jpg" width="765" height="574"></pre>
45+
46+
see enabled_ajax.html
3947

4048
h1. License
4149

0 commit comments

Comments
 (0)