mapbox / mapbox/mapbox-gl-js

Render latency when tab is idle

Open
#11,355 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

If I leave an already rendered map in an idle tab and return to it after a few minutes, there's a long lag in not seeing the map rendered to the screen.

https://user-images.githubusercontent.com/61150/147157167-67449e21-4140-4e84-ae91-9fefee909118.mov

---

**Mapbox GL JS version:** `2.7.0-alpha.1`
**Browser:** `Chrome Version 96.0.4664.110 (Official Build) (x86_64)`

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

No source file or test is named. Start by reproducing the delayed rendering in Chrome 96 with Mapbox GL JS 2.7.0-alpha.1, leaving an already rendered map idle for several minutes and reviewing the linked recording. Done means the map renders promptly when returning to the tab, with a regression test if the relevant test location can be identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.