pull down to refresh
Mhh, node.style = "visibility: hidden" leaves empty space behind.
But node.style = "display: none" should work! The node is still there for React without taking up any space in the DOM.
With node.style = "display: none", you can also keep running it after the slightly faster DOMContentLoaded event and don't need requestAnimationFrame. The load event will also wait until images are loaded.
Thank you!!
You probably told it to run after hydration, and that’s what it did, haha
But when we don’t remove the node, we don’t interfere with hydration, so we don’t need to run it after hydration.
Edit: But sounded like it was still broken after the first prompt, so you prompted it again, and that contained the actual, inspiring fix via CSS haha
Ahh, ohh, well, then they deserve no mercy!
It was the ultimate pressure cooking exercise in javascript debugging because I wrote "verified works" and then I hit
postand it died 😂