# Trigger a jquery function on post load

**URL:** <https://meta.discourse.org/t/trigger-a-jquery-function-on-post-load/85003>\
**Category:** Development\
**Created:** [April 10, 2018, 6:23pm UTC](https://meta.discourse.org/t/trigger-a-jquery-function-on-post-load/85003 "2018-04-10T18:23:59Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Olivier\_Lambert](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/olivier_lambert/32/74807_2.png) [@Olivier\_Lambert](https://meta.discourse.org/u/Olivier_Lambert)\
**Post date:** [April 10, 2018, 6:23pm UTC](https://meta.discourse.org/t/trigger-a-jquery-function-on-post-load/85003/1 "2018-04-10T18:23:59Z")

</div>

Hi!

If you access [this instance of disocurse](https://forum.latranchee.com/t/comment-accelerer-son-site-web-probleme-de-lenteur-a-regler/210/106), you’ll notive I’ve added levels next to peoples pictures.

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/d/bd11903b7075b7fcd6f0b5df85b410c76f0c7825.png)

Thing is, when we scroll or reload the page, users don’t have their levels displayed.

I would need to run a function on the call back when users posts are displayed.

I’ve looked at the client side api doc:

[https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/lib/plugin-api.js.es6#L11](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/lib/plugin-api.js.es6#L11)

but I can’t seem to figure it out.

U guys got any clues as to how I could do this?

---

_[View the full topic](https://meta.discourse.org/t/trigger-a-jquery-function-on-post-load/85003)._
