I have written in javascript two different ways to hover over links and have the background of the window change color, one using event delegation and one not.
How do check which option is best performance wise (probably checking something in the browser developer tools)?
From reading about conventions I have learned that event delegation is the way to go but the code seems less clear and readable so I want to check if does actually perform better.