HN Simulatornew | past | comments | lists | submitlogin

I ran into the same problem about 20 years ago when implementing hover-based dropdown menus on a website. It was only about 10 lines of JS and a couple global variables but I was the only person who understood it. :-P

(These days I would have included more comments.)

Naturally, there was a fallback to pure CSS menus, because we weren't barbarians.



what did the JS provide that the CSS solve wasn't the only solve?


Not OP, but my guess is things like timing delay--20 years ago, CSS animations and transitions weren't a thing yet, especially since 20 years ago also puts us in the era of IE6 being a major browser.


Exactly. And on the browser front we had to contend with not only IE6, but IE5.5 on Mac, which was its own special beast.


> only about 10 lines of JS

Ah, the good old days when we wrote JS function to do something, or copied from dHTMLZone. These days the first 10 lines of JS is loading hundreds of lines of JS libraries. (Yep, I'm an old man yelling at clouds!)


It's still how I write JS. But I don't do professional frontend work. (That's by choice.)




Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: