SolarPunker@slrpnk.net to Firefox@lemmy.world · 3 months agoHow can I prevent white flash?message-squaremessage-square10linkfedilinkarrow-up143arrow-down10file-text
arrow-up143arrow-down1message-squareHow can I prevent white flash?SolarPunker@slrpnk.net to Firefox@lemmy.world · 3 months agomessage-square10linkfedilinkfile-text
minus-squareVictor@lemmy.worldlinkfedilinkarrow-up2·3 months agoBy the way, const block = document.getElementById('antiFOUC-block') Is this necessary? Isn’t there a reference to this node already via the style identifier?
minus-squarejutty@blendit.bsd.cafelinkfedilinkarrow-up1·3 months agoI guess, but: my JS skills are horrific I have a habit of avoiding all outer and/or global state like the plague
minus-squareVictor@lemmy.worldlinkfedilinkarrow-up1·3 months ago Fair enough 😁 IMO it’s more of a closure than global state, since this is an isolated function/IIFE. 👍 But it’s up to you! 😊
By the way,
Is this necessary? Isn’t there a reference to this node already via the
styleidentifier?I guess, but: