
Mapbox Web Performance Patterns
Performance patterns for Mapbox GL JS covering initialization waterfalls, bundle size, marker rendering, and memory.
- skills.sh installs
- 2.6K
- GitHub stars
- 87
- last updated
- Aug 21, 2026
What it does
- Covers parallel data loading, precise initial viewports, deferred non-critical layers, and external style hosting to cut load time
- Includes before-and-after code for loading data alongside map init, using
requestIdleCallbackfor terrain and 3D layers, and clustering markers - Gives marker-count thresholds: HTML markers under 100, symbol layers for 100 to 10,000, and clustering above 10,000 features
- Designed for Mapbox GL JS developers whose web maps load slowly or stutter during pan and zoom
Install
$ npx -y skills add mapbox/mapbox-agent-skills --skill mapbox-web-performance-patterns -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Mapbox Performance Patterns Skill
This skill provides performance optimization guidance for building fast, efficient Mapbox applications. Patterns are prioritized by impact on user experience, starting with the most critical improvements.
Performance philosophy: These aren't micro-optimizations. They show up as waiting time, jank, and repeat costs that hit every user session.
Priority Levels
Performance issues are prioritized by their impact on user experience:
- 🔴 Critical (Fix First): Directly causes slow initial load or visible jank
- 🟡 High Impact: Noticeable delays or increased resource usage
- 🟢 Optimization: Incremental improvements for polish
🔴 Critical: Eliminate Initialization Waterfalls
Problem: Sequential loading creates cascading delays where each resource waits for the previous one.
Note: Modern bundlers (Vite, Webpack, etc.) and ESM dynamic imports automatically handle code splitting and library loading. The primary waterfall to eliminate is data loading - fetching map data sequentially instead of in parallel with map initialization.
Anti-Pattern: Sequential Data Loading
Details
- Repository
- github.com/mapbox/mapbox-agent-skills
- Categories
- Frontend & UI Code, Browser Automation & Scraping
- First seen
- Apr 16, 2026
More from mapbox/mapbox-agent-skills
All 18- Mapbox Style Patterns2.5K
- Mapbox Geospatial Operations2.3K
- Mapbox Cartography2.2K
- Mapbox Data Visualization Patterns2.2K
- Mapbox Style Quality2.1K
- Mapbox Token Security2K
- Mapbox Search Integration2K
- Mapbox Search Patterns1.9K
- Mapbox Store Locator Patterns1.8K
- Mapbox Mcp Devkit Patterns1.6K
- Mapbox Ios Patterns1.5K
- Mapbox Android Patterns1.5K
- Mapbox Google Maps Migration1.5K
- Mapbox Mcp Runtime Patterns1.5K
- Mapbox Maplibre Migration1.4K
- Mapbox Location Grounding1.3K
- Mapbox Web Integration Patterns2.7K
Similar to Mapbox Web Performance Patterns
More Frontend & UI Code
mapbox-data-visualization-patternsmapbox/mapbox-agent-skills2.2K installsData visualization patterns for maps covering choropleth, heat map, 3D, and animated data layers.
mapbox-google-maps-migrationmapbox/mapbox-agent-skills1.5K installsMigration guide mapping Google Maps Platform APIs and patterns onto Mapbox GL JS equivalents.
debug-optimize-lcpchromedevtools/chrome-devtools-mcp4.1K installsGuided debugging and optimization of Largest Contentful Paint using Chrome DevTools MCP tools, with subpart-by-subpart analysis.
performance-regression-debuggingaj-geddes/useful-ai-prompts451 installsStructured workflow for detecting, locating, and fixing performance regressions introduced by code changes.
roblox-performancesentinelcore/roblox-skills917 installsPractical Roblox performance playbook covering streaming, hot-path loops, pooling, LOD, draw calls, and MicroProfiler.
web-performance-optimizationdavila7/claude-code-templates520 installsComprehensive web performance workflow covering Core Web Vitals, bundle size, image optimization, and caching strategies.