Marie Chatfield
Aug 9, 2017 · 1 min read

Spot on with noticing case insensitivity for attributes like onclick! That’s part of the HTML5 spec: https://www.w3.org/TR/2012/WD-html-markup-20120315/documents.html#case-insensitivity

I haven’t investigated any performance implications, but there are tradeoffs either way. Using native DOM events might be slighter faster — but each one adds another event listener to the DOM itself as opposed to utilizing a single event listener on the #root element. I’d be interested in seeing a comparison of using hundreds of each type of listener and how they perform on mobile.

    Marie Chatfield

    Written by

    writes code and poetry. always looking for new things to learn. my.pronoun.is/she/her