Load non-critical code on user interaction
SkillProductivityimport-on-interaction is a skill that helps you find and defer heavy optional code so apps load faster on first use. It is used when reviewing slow initial loads caused by optional features. The skill prioritizes code that is expensive to download or execute and not required for the first viewport, first input, or core task completion.
Use Load non-critical code on user interaction in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add Load non-critical code on user interaction and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the Load non-critical code on user interaction skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; ahel provides instructions and does not run this skill.
No other account needed.
Have a codebase where you can review initial load performance.
What your AI can do with it
- Identify code that is expensive to download or execute.
- Find optional features not needed for the first viewport.
- Find optional features not needed for the first input.
- Find optional features not needed for core task completion.
- Prioritize which code to defer to improve initial load.
Getting started
- Have a codebase where you can review initial load performance.
- Identify optional features that are not required for the first viewport, first input, or core task completion.
- Use the skill to analyze which code is expensive to download or execute.
- Apply the skill's prioritization to defer heavy optional code.
What this skill tells your AI
The instructions your AI receives, as published by thedaviddias/front-end-checklist in skills/import-on-interaction/SKILL.md and read by ahel’s review.
Users should not pay the download, parse, and execution cost for features they may never use. Import-on-interaction shrinks initial JavaScript, reduces main-thread work during page load, and keeps the first view focused on content that matters immediately.
Quick Reference
- Move non-essential code behind clicks, focus, hovers, or explicit user actions
- Use dynamic import() so the code is absent from the initial route bundle
- Show immediate UI feedback while the deferred chunk loads
- Use this for chat widgets, editors, maps, filters, and export flows that are not needed on first paint
Check
Inspect this route or component for heavy modules, widgets, or third-party scripts that load on first render but are only needed after a user clicks, focuses, hovers, or opens a panel.
Fix
Move the non-critical dependency behind a user-triggered dynamic import(), add immediate loading feedback, and ensure the initial render still works without the deferred feature.
Explain
Explain import-on-interaction, why it improves initial performance, and which features are safe to defer until the user shows intent.
Code Review
Inspect event handlers, modal triggers, drawers, editors, maps, export actions, and third-party widgets. Flag code that is included in the initial bundle even though it is only needed after a user interaction, and verify the fix keeps the initial path lighter without degrading the triggered flow.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/en/rules/performance/import-on-interaction
Signals
- GitHub stars
- 74k
- Forks
- 7k
- Last commit
- Oct 2026
Questions
- What kind of tool is import-on-interaction?
- It is a skill that helps you find and defer heavy optional code so apps load faster on first use.
- When should I use import-on-interaction?
- Use it when reviewing slow initial loads caused by optional features.
- What does import-on-interaction prioritize?
- It prioritizes code that is expensive to download or execute and not required for the first viewport, first input, or core task completion.
- Does import-on-interaction support all types of code?
- It focuses on code that is expensive to download or execute and not required for the first viewport, first input, or core task completion.
Advanced
- Item type
- skill
- Key
import-on-interaction- Source
- github.com/thedaviddias/front-end-checklist
github.com/thedaviddias/front-end-checklist
More in Productivity
Skill · coreyhaines31
More in Productivitygws-calendar
Skill · googleworkspace
More in Productivitylark-workflow-standup-report
Skill · larksuite
More in Productivitywriting-plans
Skill · obra
More in Productivityenergy-procurement
Skill · affaan-m
More in Productivityhomelab-pihole-dns
Skill · affaan-m
More in Productivity