1.0.6 • Published 4 years ago

lazy-modules-listener v1.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Lazy Modules Test Package

Package has implemented lazy loading for images and videos. Package functions logs informations such as div name, visibility in percent, how long is div visible above 50%, div height and width. There is also a function that gives information about video duration, current video time and percent of the video played.

List of functions included:

  1. alldiv() - logs informations about every div on your website
  2. selecteddiv(divname) - logs informations about selected div
  3. divpos(divname) - logs distance from div footer to the top of site and from div top to the site footer
  4. time() - logs informations about video
  5. getVisibility(classname,interval in ms) - set configuration for inter() function.
  6. inter() - logs div name, percent visible and time above 50% every time given in interval
  7. stop() - stops the interval
1.0.6

4 years ago