ApoorvSaxena / ApoorvSaxena/lozad.js

holp it supports specifying observe container

Open
#69 4 comments 1 reaction 0 assignees View on GitHub
enhancement Hacktoberfest
Dominant language
JavaScript
Stars
7.5k
Forks
435
PR merge metrics
No merged PRs in 30d

Description

https://github.com/ApoorvSaxena/lozad.js/blob/65f9744a47261960b8a3ba9b73b0f6050fc91192/src/lozad.js#L47-L49

if the `document` can be replaced by a specified dom, it will be greater!
Maybe like this:
```
observe( { container = document } ) {
const elements = container.querySelectorAll(selector)
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.