# 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:** 11

<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 11, 2018, 5:44pm UTC](https://meta.discourse.org/t/trigger-a-jquery-function-on-post-load/85003/11 "2018-04-11T17:44:22Z")

</div>

> [@Falco](#):
>
> Are you running this extra request for every poster in a topic?

Just once when the app loads. But yeah, custom fields sounds much better.

I guess I’ll need to set this variable server side right? I add it once in the admin pannel, then store the data on user login through php or something?

---

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