chenglou / chenglou/pretext

Unnecessary DOM updates

Open
#152 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
50.3k
Forks
2.7k
Avg merge
2h 40m
Merged PRs (30d)
69

Description

In the [_Editorial Engine_ demo](https://chenglou.me/pretext/editorial-engine), huge chunks of the DOM are updated at every tick, even elements that didn't need to change.

https://github.com/user-attachments/assets/0809d137-e587-4e2a-85e7-c172c56bea87

Notice how the line that says "THE FUTURE" is not changing, yet its DOM element is beign replaced all the time.

This may (or may not) be related to #151

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Editorial Engine demo and investigate why unchanged DOM elements, such as the line reading “THE FUTURE,” are replaced on every tick. Read the related issue #151 for context and use the demo behavior as the check. Done means unchanged elements are no longer unnecessarily replaced while the demo still updates correctly.

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
Active
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.