Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Fixed editor performance issues in Safari for posts with HTML or Markdown cards #20806

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

ronaldlangeveld
Copy link
Member

@ronaldlangeveld ronaldlangeveld commented Aug 21, 2024

ref https://linear.app/tryghost/issue/ONC-261

  • Previous method of hiding the second Lexical instance using width: 0, height: 0, and overflow: hidden caused CPU usage to spike, likely due to CodeMirror continuously processing the element.

ref ONC-261

- Previous method of hiding the second Lexical instance using `width: 0`, `height: 0`, and `overflow: hidden` caused CPU usage to spike, likely due to CodeMirror continuously processing the element.
@github-actions github-actions bot added the affects:admin Anything relating to Ghost Admin label Aug 21, 2024
@kevinansfield kevinansfield changed the title 🐛 Fixed codemirror performance issue on Safari 🐛 Fixed editor performance issues in Safari for posts with HTML or Markdown cards Aug 21, 2024
@ronaldlangeveld ronaldlangeveld enabled auto-merge (squash) August 21, 2024 09:41
@ronaldlangeveld ronaldlangeveld merged commit 3645fd8 into main Aug 21, 2024
20 checks passed
@ronaldlangeveld ronaldlangeveld deleted the fix-codemirror-performance-safari branch August 21, 2024 09:42
ronaldlangeveld added a commit that referenced this pull request Aug 21, 2024
…rkdown cards (#20806)

ref https://linear.app/tryghost/issue/ONC-261

- Previous method of hiding the second Lexical instance using `width:
0`, `height: 0`, and `overflow: hidden` caused CPU usage to spike,
likely due to CodeMirror continuously processing the element.
ronaldlangeveld added a commit that referenced this pull request Aug 21, 2024
…rkdown cards (#20806)

ref https://linear.app/tryghost/issue/ONC-261

- Previous method of hiding the second Lexical instance using `width:
0`, `height: 0`, and `overflow: hidden` caused CPU usage to spike,
likely due to CodeMirror continuously processing the element.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects:admin Anything relating to Ghost Admin browser-tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant