Skip to content
I

import-on-visibility

Teaches visibility-based lazy loading using Intersection Observer

by patternsdevFree

#9873in AI Skills
0In stores

Description

Import On Visibility is an agent skill that teaches visibility-based lazy loading, where components are loaded only when they scroll into vi…

Highlights

  • Loads components as they scroll into view
  • Uses the IntersectionObserver API
  • Covers lazy-loaded images and heavy components
  • Lists cases where it should not be used

Ratings & Reviews

No ratings yet

Be the first to rate import-on-visibility.

People also visit

I

import-on-interaction

Teaches interaction-based lazy loading for non-critical resources

AI Skills
Get
R

react-lazy-load

Simple lazy loading component built with react

UI Libraries
Launch
R

react-visibility-sensor

Sensor component for React that notifies you

UI Libraries
Launch
D

dynamic-import

Teaches dynamic import() for on-demand code loading

AI Skills
Get
R

react-on-screen

A wrapper component to track if your react component is visible on screen

UI Libraries
Launch
A

animation-on-scroll

Create an on-scroll animation trigger using IntersectionObserver

AI Skills
Get

import-on-visibility FAQ

What does this skill make the agent do?

It adds visibility-based lazy loading, so below-the-fold images and components load as the user scrolls to them.

How does it detect visibility?

With the IntersectionObserver API, or with libraries such as react-lazyload or react-loadable-visibility.

When should I avoid it?

For above-the-fold content that must render at once, lightweight components, and content that search engines need in the initial HTML.

What do the security audits say?

Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.

How do I install it?

Run npx skills add https://github.com/patternsdev/skills --skill import-on-visibility.

What are the best import-on-visibility alternatives?

Popular alternatives to import-on-visibility include import-on-interaction, dynamic-import and animation-on-scroll. See all import-on-visibility alternatives

Developer Stuff

Badges