VisSense.js can detect what DOM elements are shown on the page, and how much of them we can see.
This small JavaScript toolkit can work when the page loads, or in real-time, as the page is scrolled, or page elements are moved around.
The library comes with four very useful functions, for detecting if the DOM element is hidden, visible, fully visible, and the percentage of how much of the element is seen on screen.
These can be used with other JS components, and provide a way to interact or alter page elements only when they're visible on page.
Example: loading the bulky code of a social sharing toolbar only when it is visible on the user's screen.
What is new in this release:
- Changed:
- Removed the banner from the minified file (a comment in the first row of the file vissense.min.js).
What is new in version 0.8.2:
- Changed:
- Removed the banner from the minified file (a comment in the first row of the file vissense.min.js).
What is new in version 0.8.0:
- Added:
- Method VisMon.publish
- VisMon.Builder
What is new in version 0.6.1:
- Fixed:
- Prevent multiple executions of a throttled function.
Requirements:
- JavaScript enabled on client side
Bình luận không