Skip to content

Fix oversized logo flash during page load - #252

Merged
stevebauman merged 1 commit into
masterfrom
fix/loading-screen-flash
Oct 24, 2026
Merged

stevebauman merged 1 commit into
masterfrom
fix/loading-screen-flash

Conversation

@stevebauman

Copy link
Copy Markdown
Owner

When the page loads, the Showcode logo can briefly fill the screen before the interface appears. The loader markup arrives before its styles, so the browser can render the SVG at the page width while it is still receiving the HTML.

This moves the loader styles and theme setup ahead of the markup, and gives the SVG explicit dimensions so it stays small even without CSS.

Verified with a slow HTML response in light, dark, and system themes. The logo stays at its intended size throughout loading. The production build also passes, and the loader disappears correctly when the interface is ready.

@stevebauman
stevebauman merged commit 1c6c241 into master Oct 24, 2026
2 of 3 checks passed
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.

1 participant