tc39 / tc39/ecmarkup

Browser hangs in revealInToc

Open
#256 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
245
Forks
80
Avg merge
10h 46m
Merged PRs (30d)
2

Description

With a bit of fast scrolling, I'm able to hang my browser pretty easily on the output of ecmarkup. I'm not sure if I can give great repro steps on this one, but here's a profile you can try out in a Chromium profiler

Profile-20200910T160353.json.txt

image

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 by opening the attached Chromium profiler profile and tracing the revealInToc activity during fast scrolling. Investigate the reported browser hang using that profile and verify that scrolling the generated ecmarkup output no longer makes the browser unresponsive.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.