updated gulp and bower files
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "jquery_lazyload",
|
||||
"version": "1.9.5",
|
||||
"version": "1.9.7",
|
||||
"homepage": "http://www.appelsiini.net/projects/lazyload",
|
||||
"authors": [
|
||||
"Mika Tuupola <tuupola@appelsiini.net>"
|
||||
@@ -24,14 +24,13 @@
|
||||
"test",
|
||||
"img"
|
||||
],
|
||||
"_release": "1.9.5",
|
||||
"_release": "1.9.7",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "1.9.5",
|
||||
"commit": "e54df43adef6ba76cb6f73edf80ec7f6935772d0"
|
||||
"tag": "1.9.7",
|
||||
"commit": "218e50eb4999fe59ac94b939a65c8c988d1d420b"
|
||||
},
|
||||
"_source": "git://github.com/tuupola/jquery_lazyload.git",
|
||||
"_source": "https://github.com/tuupola/jquery_lazyload.git",
|
||||
"_target": "~1.9.5",
|
||||
"_originalSource": "jquery.lazyload",
|
||||
"_direct": true
|
||||
"_originalSource": "jquery.lazyload"
|
||||
}
|
@@ -10,20 +10,20 @@ Lazy Load is inspired by [YUI ImageLoader](http://developer.yahoo.com/yui/imagel
|
||||
|
||||
Lazy Load depends on jQuery. Include them both in end of your HTML code:
|
||||
|
||||
```
|
||||
```html
|
||||
<script src="jquery.js" type="text/javascript"></script>
|
||||
<script src="jquery.lazyload.js" type="text/javascript"></script>
|
||||
```
|
||||
|
||||
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.
|
||||
|
||||
```
|
||||
```html
|
||||
<img class="lazy" data-original="img/example.jpg" width="640" height="480">
|
||||
```
|
||||
|
||||
then in your code do:
|
||||
|
||||
```
|
||||
```js
|
||||
$("img.lazy").lazyload();
|
||||
```
|
||||
|
||||
@@ -36,7 +36,7 @@ More information on [Lazy Load](http://www.appelsiini.net/projects/lazyload) pro
|
||||
You can install with [bower](http://bower.io/) or [npm](https://www.npmjs.com/).
|
||||
|
||||
|
||||
```
|
||||
```sh
|
||||
$ bower install jquery.lazyload
|
||||
$ npm install jquery-lazyload
|
||||
```
|
||||
|
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*!
|
||||
* Lazy Load - jQuery plugin for lazy loading images
|
||||
*
|
||||
* Copyright (c) 2007-2015 Mika Tuupola
|
||||
@@ -9,7 +9,7 @@
|
||||
* Project home:
|
||||
* http://www.appelsiini.net/projects/lazyload
|
||||
*
|
||||
* Version: 1.9.5
|
||||
* Version: 1.9.7
|
||||
*
|
||||
*/
|
||||
|
||||
|
Reference in New Issue
Block a user