Skip to content

Commit

Permalink
Update: Readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
drementer committed Jun 30, 2023
1 parent 9c26356 commit db86aa6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,19 @@ To use Lazy Load Images, include the `lazyLoadImages` function in your JavaScrip
- `selector` (string, default: '[lazy]'): CSS selector for lazy load items.
- `options` (object): IntersectionObserver options.

If no selector is provided, the default selector '[lazy]' will be used. If no options are provided, default options will be used.
If no selector is provided, the default selector '[lazy]' will be used.
If no options are provided, default options will be used.

```html
<img lazy="Path Of Asset" />
<video lazy="Path Of Asset"></video>
```

```javascript
lazyLoad();

// Or

lazyLoad('[lazy]', {
root: null,
threshold: 1,
Expand Down

0 comments on commit db86aa6

Please sign in to comment.