mapbox / mapbox/mapbox-gl-js

Why does it take a long time to load the "standard" map style?

Open
#12,868 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

performance :zap:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

**mapbox-gl-js version**: ^3.0.0-beta.1

### Question

Why does it take so long to load the standard map style for the first time?

I am using the new version of mapbox-gl and when I access my page with next.js the event map.on('load', () => {}) takes time to respond.

Only happens with this new "standard" map style

### Links to related documentation

https://github.com/mapbox/mapbox-gl-js/blob/main/MIGRATION_GUIDE_v3.md

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with MIGRATION_GUIDE_v3.md and the map.on('load') entry point described in the report, using the standard style in the Next.js setup as the reproduction context. Document what accounts for the first-load delay and when the load event responds, then confirm the explanation addresses the reported standard-style behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, next.js, typescript
Domain
documentation, frontend, web-dev
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.