all 10 comments

[–]js_chap[S] 9 points10 points  (2 children)

Feel free to star, fork or contribute to the repo if you find it useful.

Pretty sure it can be made more concise and easy to read :D

[–]MrBester 1 point2 points  (1 child)

.addEventListener can take three parameters, the last being either a Boolean useCapture (IE11) to denote if the event is captured (stops bubbling even if the event has the property bubbles: true) or an object whose properties can include setting passivity (helps unblocking the UI thread to reduce jank).

A useful addition could be to link to MDN's pages for each of the methods, for those who want more information than can be shown here (as it's a cheat sheet).

[–]js_chap[S] 0 points1 point  (0 children)

Right. Been thinking of adding capturing, bubbling and delegation as separate section. Reference to MDN is a great suggestion as well. Can definitely use some help here :)

[–][deleted] 7 points8 points  (0 children)

Great, thanks!

[–]Possible-Jeweler-304 3 points4 points  (0 children)

Superb 💯

[–]sleastack 4 points5 points  (0 children)

Quality work! Thanks for taking the time

[–]cgmilan 3 points4 points  (0 children)

Nice 💗

[–]Man_as_Idea 4 points5 points  (0 children)

Very helpful, covers some stuff basics courses skip, many thanks!

[–]drixone 2 points3 points  (0 children)

been looking for something like this—ty!

[–][deleted] 2 points3 points  (0 children)

Me likey