Skip to content

Commit

Permalink
Remove placeholder image from example.
Browse files Browse the repository at this point in the history
  • Loading branch information
tuupola committed Oct 16, 2013
1 parent ad3e122 commit 3d01e89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.textile
Expand Up @@ -13,9 +13,9 @@ Lazy Load depends on jQuery. Include them both in end of your HTML code:
<pre><script src="jquery.js" type="text/javascript"></script>
<script src="jquery.lazyload.js" type="text/javascript"></script></pre>

You must alter your HTML code. Put the place holder image into src attribute. Demo pages use 1×1 pixel grey gif. URL of the real image must be put into data-original attribute. It is good idea to give Lazy Loaded image a specific class. This way you can easily control which images plugin is binded to. Note that you should have width and height attributes in your image tag.
You must alter your HTML code. URL of the real image must be put into data-original attribute. It is good idea to give Lazy Loaded image a specific class. This way you can easily control which images plugin is binded to. Note that you should have width and height attributes in your image tag.

<pre><img class="lazy" src="img/grey.gif" data-original="img/example.jpg" width="640" height="480"></pre>
<pre><img class="lazy" data-original="img/example.jpg" width="640" height="480"></pre>

then in your code do:

Expand Down

0 comments on commit 3d01e89

Please sign in to comment.