Performance requirements and optimization guidelines for Base MiniApps
Metric | Target | Measurement |
---|---|---|
First Contentful Paint (FCP) | ≤ 1.2s | Time to first visible content |
Largest Contentful Paint (LCP) | ≤ 2.5s | Time to main content loaded |
First Input Delay (FID) | ≤ 100ms | Responsiveness to user interaction |
Time to Interactive (TTI) | ≤ 1.5s | App ready for meaningful interaction |
Metric | Target | Measurement |
---|---|---|
Cumulative Layout Shift (CLS) | ≤ 0.1 | Visual stability score |
Total Blocking Time (TBT) | ≤ 200ms | Main thread blocking time |
Frame Rate | ≥ 60 FPS | Smooth animations and scrolling |
Memory Usage | ≤ 50MB | Peak JavaScript heap size |
Resource Type | Budget | Notes |
---|---|---|
Initial JavaScript | ≤ 200KB (gzipped) | Critical path JS bundle |
Initial CSS | ≤ 50KB (gzipped) | Above-the-fold styles |
First Screen Images | ≤ 300KB total | All images visible on load |
Total Initial Payload | ≤ 600KB | Everything needed for first interaction |