Skip to content

Conversation

@shahar1
Copy link
Contributor

@shahar1 shahar1 commented Jan 3, 2026

Copilot Summary

This pull request improves the site's theme handling and header animation responsiveness to theme changes. The most significant updates are the addition of an early theme initialization script to prevent flashes of unstyled content (FOUC) and the introduction of a MutationObserver to detect and respond to theme changes in the header animation.

Theme Initialization and Responsiveness:

  • Added an early theme initialization script to head-end.html to set the correct theme (light or dark) before page content loads, preventing FOUC and ensuring that animations use the right theme from the start.
  • Updated headerAnimation.js to include a MutationObserver that listens for changes to the data-bs-theme attribute on the document element, ensuring the header animation stays in sync with theme changes.

@shahar1 shahar1 marked this pull request as draft January 3, 2026 15:27
@shahar1 shahar1 closed this Jan 3, 2026
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