DEV Community

Discussion on: Why you should use the URL to store state in your application

Collapse
 
deathshadow60 profile image
deathshadow60

This is why I don't use JavaScript to trigger/handle my modals in the first place. I use :target in my CSS to show/hide them, thus to make them show you have to href="#contact" to open my #contact.modal... CSS doing all the heavy lifting.

So many things people mindlessly and carelessly throw JS at these days either has no business on anything web-facing, or HTML/CSS can handle just fine on their own. It's like everyone's still got their craniums up the early '00's rectum. But that shouldn't be a surprise with all these garbage frameworks like bootcrap or failwind recreating everything that was wrong with HTML 3.2 using classes, inserting head up the 1990's backside to say hello to Lemmiwinks. Hardly a shock the scripting practices follow suit.