Skip to content

perf: cache editor layout geometry and preload styles to eliminate forced reflows#136

Merged
ThisIs-Developer merged 1 commit into
mainfrom
perf-ux-a11y-optimizations
May 31, 2026
Merged

perf: cache editor layout geometry and preload styles to eliminate forced reflows#136
ThisIs-Developer merged 1 commit into
mainfrom
perf-ux-a11y-optimizations

Conversation

@ThisIs-Developer
Copy link
Copy Markdown
Owner

This Pull Request introduces elite performance and accessibility optimizations to resolve layout thrashing reflows and render-blocking styles.

Key Changes:

  • Global Editor Geometry & Scroll Position Caching: Isolated and cached all layout values (cachedPaddingLeft, cachedPaddingRight, cachedLineHeight, etc.) in global variables, eliminating all DOM queries inside the updateLineNumbers() typing loop.
  • High-Performance Asynchronous CSS Preloading: Replaced render-blocking tags for Bootstrap and GitHub-style Markdown CSS with preload tags and async onload handlers.
  • Desktop App Synchronization: Programmatically parsed these preload tags and replaced them with offline local paths inside desktop-app/resources/.

Copilot AI review requested due to automatic review settings May 31, 2026 15:42
@vercel
Copy link
Copy Markdown

vercel Bot commented May 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
markdown-viwer Ready Ready Preview, Comment May 31, 2026 3:43pm

@ThisIs-Developer ThisIs-Developer merged commit 8c41000 into main May 31, 2026
6 of 7 checks passed
@ThisIs-Developer ThisIs-Developer deleted the perf-ux-a11y-optimizations branch May 31, 2026 15:43
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants