Skip to content
I

import-on-interaction

Teaches interaction-based lazy loading for non-critical resources

by patternsdevFree

#9872in AI Skills
0In stores

Description

Import On Interaction is an agent skill that teaches interaction-based lazy loading for non-critical resources. Pages often include code for…

Highlights

  • Defers code for parts users open only on click or scroll
  • Covers third-party widgets such as video players and chat
  • Targets First Input Delay and Time to Interactive
  • Includes guidance on when not to use it

Ratings & Reviews

No ratings yet

Be the first to rate import-on-interaction.

People also visit

I

import-on-visibility

Teaches visibility-based lazy loading using Intersection Observer

AI Skills
Get
D

dynamic-import

Teaches dynamic import() for on-demand code loading

AI Skills
Get
P

preload

Teaches resource preloading to prioritize critical assets

AI Skills
Get
T

third-party

Teaches strategies for mitigating third-party script performance impact

AI Skills
Get
L

loading-sequence

Teaches resource loading sequence optimization for Core Web Vitals

AI Skills
Get
R

react-ui-patterns

Modern React UI patterns for loading states, error handling, and data fetching

AI Skills
Get

import-on-interaction FAQ

What does this skill make the agent do?

It defers code and widgets that are only needed after the user clicks or scrolls, so the first load is lighter.

Which widgets does it mention?

Video players and chat widgets that need a button click before the main interface appears.

Which metrics does it aim to improve?

First Input Delay and Time to Interactive.

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-interaction.

What are the best import-on-interaction alternatives?

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

Developer Stuff

Badges