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

Update theme on pageshow event #93253

Merged
merged 1 commit into from
Jan 24, 2022
Merged

Update theme on pageshow event #93253

merged 1 commit into from
Jan 24, 2022

Commits on Jan 24, 2022

  1. Update theme on pageshow event

    When a user goes forward or back, the page may be rendered from the
    back/forward cache (https://web.dev/bfcache/) rather than from scratch. If
    they have changed theme in the meantime, that means seeing an incorrect
    theme on the page they went forward or back to. The `pageshow` event
    fires on such navigations, so we can update the theme based on that event.
    jsha committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    b30725e View commit details
    Browse the repository at this point in the history