B
B
BonBon Slick2019-10-08 17:14:39
JavaScript
BonBon Slick, 2019-10-08 17:14:39

Wrapper for IntersectionObserver?

Please advise a very compact and lightweight wrapper package for this wonderful API.
Note whether a polyfill or lazy load is different.
It is necessary to avoid creating new IntersectionObserver() each time its parameters and so on. then new is scattered throughout the project + code duplication for initialization and use.
Searched here , all is not right. Or which one did you miss?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question