Intersection Observer in JavaScript. How does it work ? (in 8 minutes)

preview_player
Показать описание
In this video you will learn:
1). How to implement lazy loading using intersection observer in a vanilla js app.
2). How to use polyfill library to implement intersection observer in lower chrome versions.
3). How to implement infinite scrolling in a react js app.

🧑‍💻 Course Content:
0:00 Introduction
0:10 What you will learn ?
0:31 Why Intersection Observer ?
0:51 What is Intersection Observer ?
1:02 Why should you use Intersection observer ?
1:40 Implement lazy loading using intersection observer
3:46 Implement intersection observer using polyfill
4:51 Infinite scrolling using intersection obsever

Links 🔗:

Рекомендации по теме
Комментарии
Автор

Hello, guys! I didn't quite get how our callback function can receive the second argument (observer) which is actually new IntersactionObserver that contains this callback function itself? It means that the second argument of the callback is actually the callback function? How is it even possible?

rashmidhande