---
title: "jQuery.ready() equalent event listener on elements?"  
description: "jQuery.ready() equalent event listener on elements?"  
author: "Kate Smith"  
published: 2013-10-14  
updated: 2013-10-14  
canonical: https://www.mindstick.com/forum/1660/jquery-ready-equalent-event-listener-on-elements  
category: "jquery"  
tags: ["jquery"]  
reading_time: 1 minute  

---

# jQuery.ready() equalent event listener on elements?

I am using jQuery [JavaScript](https://www.mindstick.com/articles/874/how-to-create-watermark-text-for-textbox-by-using-javascript) library. I like the [event listener](https://www.mindstick.com/interview/529/how-to-remove-the-event-listener) .ready(); what fires when the [DOM](https://www.mindstick.com/blog/304003/what-is-the-difference-between-virtual-dom-and-shadow-dom) is set up. ( Pretty similar to .onload )

fires when the DOM is set up.

( Pretty similar to .onload )

I would find it very [useful](https://www.mindstick.com/articles/12694/how-dolomite-mineral-is-useful-in-human-life), if there was an event listener wich has a very similar [behavior](https://www.mindstick.com/forum/159354/runtimeexception-and-exception-behavior) to this, but fires when an element is fully loaded. (f.e.: [Picture](https://answers.mindstick.com/qa/38554/name-the-oscar-winning-sound-designer-who-became-the-first-asian-to-win-the-award-for-best-sound-for-documentary-india-s-daughter-at-the-coveted-motion-picture-sound-editors-63rd-annual-golden-reel-awards), a Div, such )

I would appreciate both jQuery or JavaScript [methods](https://www.mindstick.com/articles/13060/runny-nose-remedy-methods-that-work-best) too.

Thanks.

## Replies

### Reply by Hank Greenberg

All elements (including div and img) are ready as soon as DOMReady fires - that's what it means.

However, you can use the load() [event](https://www.mindstick.com/articles/167719/marquee-hire-benefits-of-event-lighting-hire-london) to run some code when an img tag has fully loaded the image in it's src attribute:

```
$('img').load(function() {
   console.log('image loaded');
});
```

\


---

Original Source: https://www.mindstick.com/forum/1660/jquery-ready-equalent-event-listener-on-elements

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
