uiwjs / uiwjs/react-codemirror

cumulative layout shift while loading

Open
#523 7 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

demo
Dominant language
TypeScript
Stars
2.3k
Forks
161
PR merge metrics
No merged PRs in 30d

Description

while initally loading the component we start with no placeholder div which causes layout shift. This can even be seen when reloading the demo site:
https://uiwjs.github.io/react-codemirror/

is there a way to fix this?

Contributor guide

No contributing guide indexed for this repository

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

Reproduce the layout shift while initially loading or reloading the demo at https://uiwjs.github.io/react-codemirror/. Trace the component's loading state and identify where the missing placeholder is handled; done when the initial load reserves space and the shift is no longer visible.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend, performance
Issue type
Bug
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.