You know those annoying “subscribe to our newsletter” modals that websites display?
What’s extra annoying is that they still pop up even if you’re subscribed to the newsletter.
You know those annoying “subscribe to our newsletter” modals that websites display?
What’s extra annoying is that they still pop up even if you’re subscribed to the newsletter.
You can switch things around. Instead of adding lots of event handlers to lots of elements, you can add one event handler to the root element. Then figure out whether the element that just got clicked is special or not.
This is a good short article on JS event handling.
Two articles connected in my brain yesterday, so I wrote a little about them.
After you make a fast web site, keep it fast by measuring it over time.
Saw this in the footer of Paul Kinchla’s website (https://paulkinchla.com/) and thought it was an interesting project.
I continue to be disappointed in the general abandonment of public APIs.