this post was submitted on 04 May 2024
196 points (99.0% liked)
Firefox
17952 readers
384 users here now
A place to discuss the news and latest developments on the open-source browser Firefox
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Isn't that how it works/always worked? When i was learning html/js ages ago i had to use some event listener (
DOMContentLoaded
i think) or put the script just before</body>
(for any code that should run on load and interacts with the DOM).And how do you change the background by removing a child?
Yeah, they should be listening for an event, not just YOLOing it in the head, that's just racey...