Come on, it's not realistic to load a big library just because DOM API is "too long". Create some helpers if you care about the character counts.
Regarding, querying API has "too many kinds", all other queries are possible by just using querySelectorAll.
querySelectorAll
I think this article was meant as a joke, but I do agree that creating some helpers is better than loading in a library that also handles many other things.
27 kb gzipped is a big library? Nonsense.
Yes it is
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Come on, it's not realistic to load a big library just because DOM API is "too long". Create some helpers if you care about the character counts.
Regarding, querying API has "too many kinds", all other queries are possible by just using
querySelectorAll
.I think this article was meant as a joke, but I do agree that creating some helpers is better than loading in a library that also handles many other things.
27 kb gzipped is a big library? Nonsense.
Yes it is