Skip to content

Commit 4612508

Browse files
committed
Fix typo
1 parent 57c5848 commit 4612508

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/Loading/Find-non-Lazy-Loaded-Images-outside-of-the-viewport.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function formatBytes(bytes) {
4545
return Math.round((bytes / Math.pow(k, i)) * 100) / 100 + " " + sizes[i];
4646
}
4747

48-
async function findImgCanidatesForLazyLoading() {
48+
async function findImgCandidatesForLazyLoading() {
4949
let notLazyImages = document.querySelectorAll('img:not([data-src]):not([loading="lazy"])');
5050
const notLazyImagesOutOfViewport = Array.from(notLazyImages).filter((tag) => !isInViewport(tag));
5151

@@ -102,5 +102,5 @@ async function findImgCanidatesForLazyLoading() {
102102
notLazyImagesOutOfViewport.forEach((img) => console.log(img));
103103
}
104104

105-
findImgCanidatesForLazyLoading();
105+
findImgCandidatesForLazyLoading();
106106
```

0 commit comments

Comments
 (0)