1.0.14 • Published 4 years ago

lazy-module-listener v1.0.14

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, 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:

Functiondescription
config('classname',interval in ms)set configuration for timer, which is counting how long divs from given class are visible above 50%,
start()starts to log informations about percent of visibility and time of visibility above 50% of divs from given class,
stop()stops logging informations
alldiv()logs informations about every div on your website. TO LOG INFORMATION ABOUT YOUR DIV YOU HAVE TO ADD CLASS "count" TO IT
selecteddiv(divname)logs informations about selected div
divpos(divname)logs distance from div footer to the top of site and from div top to the site footer
time()logs informations about video

##How to add to your code:

To use package You have to just add \ <script src="yourdirectory/node_modules/lazy-module-listener/bundle.js"></script> to your HTML file :sunglasses:

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago