---
title: "Discussion on \"Many ways to deal with events in javascript\" | Hashnode"
description: "Discussion on \"Many ways to deal with events in javascript\". Do you remember the time where you discovered document.ready ? I do, it seemed like magic: run the code once your html is loaded. Then, you initialise your jQuery plugins, and you are good to go...\nBut recently, I've built a SPA (to be more precise, ..."
url: "https://hashnode.com/posts/many-ways-to-deal-with-events-in-javascript/644133faef84a4e34a983a7b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Many ways to deal with events in javascript](https://blog.lekoala.be/many-ways-to-deal-with-events-in-javascript?utm_source=hashnode&utm_medium=feed)

Do you remember the time where you discovered document.ready ? I do, it seemed like magic: run the code once your html is loaded. Then, you initialise your jQuery plugins, and you are good to go... But recently, I've built a SPA (to be more precise, ...

Apr 20, 2023 · 3 min read · blog.lekoala.be  
Read the article

-   [#js](https://hashnode.com/tag/js)
-   [#event-listener](https://hashnode.com/tag/event-listener)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#event-delegation](https://hashnode.com/tag/event-delegation)
-   [#custom-elements](https://hashnode.com/tag/custom-elements)

## Written by

[Thomas Portelange](https://hashnode.com/@lekoala)

@lekoala · Belgium

  
[View profile](https://hashnode.com/@lekoala)

A PHP/JS Web Developer based in Belgium

A Web Developer based in Belgium, specialized in PHP &amp; JS development

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
