frontend
When JavaScript is Too Much: Using HTML and CSS Instead
Before adding JavaScript to an interaction, I check what HTML already offers. A link, a form or a disclosure element may be enough for the job.
Then I can spend the script budget on behaviour that needs it. There are plenty of legitimate reasons to write JavaScript; I just don't want to rebuild basic browser behaviour accidentally. The smallest solution is also easier to check when something goes wrong or a resource fails to load.