1
Fork 0

Investigate if it's possible to get rid of the initial flash when branches are being restored #64

Open
opened 2025-01-12 23:03:39 +01:00 by riki · 2 comments
Owner

I'm curious if it'd be possible to do it with Web Components. Spells are nice in theory, but that particular limitation is kind of annoying…

I'm curious if it'd be possible to do it with Web Components. Spells are nice in theory, but that particular limitation is kind of annoying…
riki added the
perf
label 2025-01-12 23:03:44 +01:00
Author
Owner

One potential difficulty I'm seeing is that scripts are loaded asynchronously along the tree, rather than synchronously before it. This is generally good, but it could make it impossible to get rid of the flash.

I'm not sure about compilation though. Maybe it's just the downloading that's asynchronous.

One potential difficulty I'm seeing is that scripts are loaded asynchronously along the tree, rather than synchronously before it. This is generally good, but it could make it impossible to get rid of the flash. I'm not sure about compilation though. Maybe it's just the downloading that's asynchronous.
Author
Owner

Right now it seems to me as though spells are run on DOMContentLoaded, which is precisely what I was trying to avoid with the whole MutationObserver dance. Annoying, annoying, annoying.

Right now it seems to me as though spells are run on DOMContentLoaded, which is precisely what I was trying to _avoid_ with the whole `MutationObserver` dance. Annoying, annoying, annoying.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: riki/treehouse#64
No description provided.