# C'è un evento che si attiva quando le topic-list vengono ricaricate?

**URL:** <https://meta.discourse.org/t/is-there-an-event-that-fires-when-topic-lists-are-reloaded/78523>\
**Category:** Development\
**Created:** [20 Gennaio 2018, 6:22am UTC](https://meta.discourse.org/t/is-there-an-event-that-fires-when-topic-lists-are-reloaded/78523 "2018-01-20T06:22:08Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)\
**Post date:** [20 Gennaio 2018, 6:22am UTC](https://meta.discourse.org/t/is-there-an-event-that-fires-when-topic-lists-are-reloaded/78523/1 "2018-01-20T06:22:08Z")

</div>

Excuse the butchered terminology 🌻

* * *

I’m trying to use [masonry](https://masonry.desandro.com/) in combination with the [topic list previews plugin](https://meta.discourse.org/t/topic-list-previews/41630) to create a grid topic list like so:

 ![Capture](https://global.discourse-cdn.com/meta/original/3X/c/1/c1477a8d5fb972bccdc8ff75de83b2cde86bf257.jpg)

When new items are added to a masonry grid or the topic-list in this case the current items need to be “reshuffled” and resized in some sense so that everything fits.

Masonry handles that with a native function or `.layout()` which recalculates the grid and arranges the items when called.

In order to make masonry aware of new items or topics being added to the topic list, I would like to trigger `.layout()` when this is clicked:

 ![Capture](https://global.discourse-cdn.com/meta/original/3X/1/a/1aaf95db636d63f92051ec60b3e8bb3cdf1bb0cc.PNG)

## So here’s the question.

Is there a native Discourse event that fires when the the link to reload the topic list is clicked that I can bind masonry to?

---

_[View the full topic](https://meta.discourse.org/t/is-there-an-event-that-fires-when-topic-lists-are-reloaded/78523)._
