Lightweight library for supporting cross-browser events

Cross-browser processing is sometimes a lot of hassle.

In this case, I need to capture quite a few events, but I can not afford to use a multi-purpose library that is larger than 10ish Kb . (e.g. jQuery, Prototype, Dojo, YUI, ...)

This script is designed to track the various sites that I support.

Each browser seems to handle events a bit, and sometimes in completely different ways !

alt text


I would be very happy if someone could point me to a Javascript library designed for cross-browser event handling.

That would make my day! =

+3
source share
2 answers

I'm not sure how much event handling you need to do, or if you want to add custom events, but here is another option if you're interested. He uses Dean Edwards and adds some bells and whistles to get closer to 5K.

https://github.com/fat/bean

+3
source

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


All Articles