While working on a recent project we were amazed to find out that a trivial task as detecting a mouseenter on an element could be such a pain. But yes it was! Unfortunately it was the source of tons of our headaches. I know that most of you reading this would instantly scream out “the heck dude… jQuery: $.mouseenter()!”. And yes, you would have been right, jQuery (and probably other) supports it by simulating the event and makes it possible to be used regardless of the browser. However by targeting the modern browsers only, and performance being an essential part of our project, no jQuery nor any other JavaScript library was available – nothing but vanilla JS.


