this post was submitted on 15 Nov 2025
44 points (100.0% liked)

Firefox

7086 readers
18 users here now

A community for discussion about Mozilla Firefox.

founded 2 years ago
MODERATORS
 

I'm using Dark Reader extension but still I'm whiteflashed when loading pages.

you are viewing a single comment's thread
view the rest of the comments
[–] victorz@lemmy.world 2 points 4 months ago (1 children)

By the way,

const block = document.getElementById('antiFOUC-block')

Is this necessary? Isn't there a reference to this node already via the style identifier?

[–] jutty@blendit.bsd.cafe 1 points 4 months ago (1 children)

I guess, but:

  1. my JS skills are horrific
  2. I have a habit of avoiding all outer and/or global state like the plague
[–] victorz@lemmy.world 1 points 4 months ago
  1. Fair enough 😁
  2. IMO it's more of a closure than global state, since this is an isolated function/IIFE. 👍 But it's up to you! 😊