Skip to content

Commit 301e353

Browse files
authored
Merge pull request #134 from marksto/patch-1
Fix picture loader description
2 parents 2e40621 + e34e899 commit 301e353

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugins/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ The `noop-success` and `noop-error` loaders will return the current state to Laz
210210
**Default for:** `<picture>`
211211

212212
Loads `<picture>` elements and attach the sources.
213-
There are two ways you can prepare your audio and/or video tags.
213+
There are two ways you can prepare your picture tags.
214214
First way is to create all child elements from a single line:
215215
```HTML
216216
<picture data-src="default.jpg" data-srcset="1x.jpg 1x, 2x.jpg 2x, 3x.jpg 3x" data-media="(min-width: 600px)" data-type="image/jpeg" />
@@ -219,12 +219,12 @@ First way is to create all child elements from a single line:
219219
The other way is to add the sources like default, as child elements.
220220
```HTML
221221
<picture>
222-
<data-src srcset="1x.jpg 1x, 2x.jpg 2x, 3x.jpg 3x" media="(min-width: 600px)" type="image/jpeg">
223-
<data-img src="default.jpg" >
222+
<data-src srcset="1x.jpg 1x, 2x.jpg 2x, 3x.jpg 3x" media="(min-width: 600px)" type="image/jpeg"></data-src>
223+
<data-img src="default.jpg"></data-img>
224224
</picture>
225225

226226
<picture data-src="default.jpg">
227-
<data-src srcset="1x.jpg 1x, 2x.jpg 2x, 3x.jpg 3x" media="(min-width: 600px)" type="image/jpeg">
227+
<data-src srcset="1x.jpg 1x, 2x.jpg 2x, 3x.jpg 3x" media="(min-width: 600px)" type="image/jpeg"></data-src>
228228
</picture>
229229
```
230230

0 commit comments

Comments
 (0)