📜 ⬆️ ⬇️

Practical JS: we accelerate event handling

Note: below is the translation of the article “Event without a JavaScript library” devoted to the review of methods for assigning event handlers to JavaScript and their possible optimization, it is supplemented with my comments and practical part.

Most of the articles and examples that I have seen recently in redefining events were based on a common library. For example, in his well-known article, Chris Heilmann uses the YUI library , and last month Dan Webb used a prototype in his media presentation .

For those of us who manually bloat over a rather confusing JavaScript application without using these great libraries, it will be interesting to see how event redefinition actually works. It sounds as if the material described below will be much more complicated than the usual assignment of handlers, but, in fact, everything is very simple.
')
read further on webo.in →

Source: https://habr.com/ru/post/31222/


All Articles