|
1 | 1 | /** |
2 | | - * @preserve LaziestLoader - v0.5.1 - 2014-06-19 |
| 2 | + * @preserve LaziestLoader - v0.5.2 - 2015-09-24 |
3 | 3 | * A responsive lazy loader for jQuery. |
4 | 4 | * http://sjwilliams.github.io/laziestloader/ |
5 | 5 | * Copyright (c) 2014 Josh Williams; Licensed MIT |
|
46 | 46 | * will be replaced by an integer from a list of available sizes. |
47 | 47 | * Eg: |
48 | 48 | * |
49 | | - * <img data-pattern="path/toyourimage-{{size}}.jpg" data-size="[320, 640, 970]"> |
50 | | - * <img data-pattern="path/toyourimage-{{size}}.jpg" data-pattern-retina="path/toyourimage-{{size}}@2x.jpg" data-size="[320, 640, 970]"> |
51 | | - * <img data-pattern="path/toyourimage/{{size}}/slug.jpg" data-pattern-retina="path/toyourimage/{{size}}/[email protected]" data-size="[320, 640, 970]"> |
| 49 | + * <img data-pattern="path/toyourimage-{{size}}.jpg" data-widths="[320, 640, 970]"> |
| 50 | + * <img data-pattern="path/toyourimage-{{size}}.jpg" data-pattern-retina="path/toyourimage-{{size}}@2x.jpg" data-widths="[320, 640, 970]"> |
| 51 | + * <img data-pattern="path/toyourimage/{{size}}/slug.jpg" data-pattern-retina="path/toyourimage/{{size}}/[email protected]" data-widths="[320, 640, 970]"> |
52 | 52 | * |
53 | 53 | * Range of sizes, with slugs: specify a string path with a {{size}} that |
54 | 54 | * will be replaced by a slug representing an image size. |
55 | 55 | * Eg: |
56 | 56 | * |
57 | | - * <img data-pattern="path/toyourimage-{{size}}.jpg" data-size="[{width: 320, slug: 'small'},{width:900, slug: 'large'}]"> |
| 57 | + * <img data-pattern="path/toyourimage-{{size}}.jpg" data-widths="[{width: 320, slug: 'small'},{width:900, slug: 'large'}]"> |
58 | 58 | * |
59 | 59 | * @param {jQuery object} $el |
60 | 60 | * @return {String} |
|
0 commit comments