Ghostly
Advanced

Performance

Bundle size, runtime cost, and Core Web Vitals impact.

Bundle Size

PackageGzippedBrotli
@ghostly-ui/core (CSS)~2KB~1.5KB
@ghostly-ui/react~1KB~0.8KB
Total~3KB~2.3KB

Comparison

LibraryGzippedRuntime JSBuild step
Ghostly~3KBNoneNone
react-loading-skeleton~4KBStyle injectionNone
react-content-loader~6KBSVG renderingNone
Boneyard~16KBLayout enginePlaywright

Runtime Cost

Zero. CSS animations are GPU-accelerated, off main thread, and battery efficient. No requestAnimationFrame, no ResizeObserver, no layout thrashing.

Core Web Vitals

MetricImpact
CLSReduces — skeleton preserves layout, min-height prevents collapse
LCPNone — ~2KB CSS doesn't block rendering
INPNone — pointer-events: none during loading, no JS handlers

Best Practices

  • Use count={6-12} in GhostlyList, not 100+
  • Use animation="pulse" for large areas (lighter than shimmer)
  • Avoid re-renders during loading by passing stable references