sonnet icon indicating copy to clipboard operation
sonnet copied to clipboard

Brief white flash in demo app between page loads

Open canadaduane opened this issue 1 year ago • 1 comments

On Firefox, with "dark mode" selected in system settings, when I run the create-sonnet-app generated localhost app (edit to add: with SSR enabled), there are brief white flickers when CSS styles are not applied:

https://github.com/user-attachments/assets/b7f7fe5e-96c6-468e-950d-89a249c70d00

Is this expected?

canadaduane avatar Dec 21 '24 23:12 canadaduane

The server-side implementation is currently experimental. Ideally, when persisting theme state using cookies, the server should read these cookies during the request lifecycle and render the HTML accordingly based on the stored theme preference.

htmujahid avatar May 15 '25 00:05 htmujahid