Skip to content

Flashing upon page switch #5

@ggtylerr

Description

@ggtylerr

Whenever a new page is loaded on the site (not including the first page loaded), the colors are not loaded properly, until a few seconds later. This is possibly due to astro-spa.

Fixes attempted:

  • Disabling defaultAnimation (Helps, but the colors still don't load)
  • Moving the theme loading script to the start of body
  • Setting the background colors in the script itself, in case the stylesheet didn't load
  • Setting a "preload" class to body that disables transitions, and then removing it a second later.

It's possible that a fade-in animation that just sets the BG color to the theme's color would fix it - I'll try implementing this tomorrow (I've already had to deal with an aneurysm trying to fix this over the past 1-2 hours.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions