Skip to content

Conversation

@st0012
Copy link
Member

@st0012 st0012 commented Dec 21, 2025

Previously, the sidebar was hidden with JavaScript on small viewports. This approach caused flickering when the page was loaded, especially on mobile devices.

Now, the sidebar is hidden by default with the hidden attribute. On large viewports, we display the sidebar with JavaScript. This approach avoids flickering when the page is loaded, especially on mobile devices.

@st0012 st0012 added the bug label Dec 21, 2025
@matzbot
Copy link
Collaborator

matzbot commented Dec 21, 2025

🚀 Preview deployment available at: https://97534c8f.rdoc-6cd.pages.dev (commit: 83c8d7a)

Previously, the sidebar was hidden with JavaScript on small viewports.
This approach caused flickering when the page was loaded, especially on mobile devices.

Now, the sidebar is hidden by default with the `hidden` attribute.
On large viewports, we display the sidebar with JavaScript.
This approach avoids flickering when the page is loaded, especially on mobile devices.
@st0012 st0012 force-pushed the avoid-sidebar-flickering-on-mobile branch from 5357c91 to 83c8d7a Compare December 21, 2025 18:56
@tompng tompng merged commit 1e58ee2 into master Dec 22, 2025
62 checks passed
@tompng tompng deleted the avoid-sidebar-flickering-on-mobile branch December 22, 2025 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants