by gregweng · 11y ago · 0 comments
However, I think it's because DOM/BOM API sucks. JavaScript, namely the language itself, doesn't even specify any event driven or asynchronous things. Not to mention why NodeList horribly isn't an array, or the need to write the long and annoying 'getElementsByClassName' rather than a simple $( ).
(Yes I know things like 'querySelectorAll' are much better, but it's too late for most of prejudices)