skeleton-loading-system

Implement a 4-tier skeleton loading system for web applications using JavaScript.

Updated Dec 5, 2025
One-click install
npx skills add https://github.com/ApothecaryMan/pharmaflow-ai --skill skeleton-loading-system
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skeleton-loading-system
Source: https://github.com/ApothecaryMan/pharmaflow-ai/tree/main/.agent/skills/skeleton-loading-system
Command: npx skills add https://github.com/ApothecaryMan/pharmaflow-ai --skill skeleton-loading-system

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps address UI jank, blank screens, and layout shifts during loading states, providing a more immediate and seamless user experience.

Core Features & Use Cases

  • Progressive Loading: Manages loading in a 4-tier hierarchy from app boot to component level.
  • Page Transition Skeletons: Handles full-page loading during transitions.
  • Section-Level Skeletons: Allows partial loading without blocking other sections.
  • Inline Element Skeletons: Manages component-specific loading with minimal performance impact.
  • Use Case: Integrate this Skill into web applications to reduce perceived loading time, maintain UI integrity, and prevent user frustration.

Quick Start

Run 'npm run add-skeleton' to add the progressive skeleton loading to your page.

Frequently Asked Questions about skeleton-loading-system

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix UI jank and layout shift during web app loading states?

To fix UI jank and layout shift, implement a progressive skeleton loading system using a 4-tier hierarchy from app boot to component level. This approach manages component-wise state and conditional rendering to maintain UI integrity while reducing perceived loading time.

What is progressive skeleton loading and how does it improve user perception?

Progressive skeleton loading is a 4-tier UI hierarchy strategy that manages loading from app boot to inline element levels. It improves user perception by utilizing blocking and non-blocking strategies to provide immediate visual feedback and prevent blank screens during page transitions.

How do I add skeleton loading components to my web application?

To add skeleton loading components, run the 'npm run add-skeleton' command to integrate the progressive skeleton loading system into your page. This requires JavaScript to handle the component-wise state management and conditional rendering across the UI layers.

Does the skeleton loading system support section-level loading without blocking other UI elements?

Yes, the skeleton loading system supports section-level loading without blocking other UI elements. It utilizes non-blocking strategies at different UI layers, allowing partial loading of individual sections while maintaining full-page transition skeletons and managing inline element skeletons with minimal performance impact.

Do I need JavaScript to implement progressive skeleton loading for UI components?

Yes, you need JavaScript to implement progressive skeleton loading. The system requires JavaScript for component-wise state management and conditional rendering to execute the 4-tier hierarchy and manage the mix of blocking and non-loading strategies effectively.

When should I use a 4-tier skeleton loading system instead of basic loading spinners?

Use a 4-tier skeleton loading system instead of basic spinners when you need to manage complex page transitions, section-level partial loading, and inline element skeletons. This approach reduces layout shift and perceived loading time more effectively than generic spinners by matching the actual UI structure.