# Atraso no carregamento de Tópicos Sugeridos

**URL:** <https://meta.discourse.org/t/delay-in-loading-suggested-topics/87163>\
**Category:** Development\
**Tags:** suggested-topics\
**Created:** [10 Maio , 2018 13:55 UTC](https://meta.discourse.org/t/delay-in-loading-suggested-topics/87163 "2018-05-10T13:55:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)\
**Post date:** [10 Maio , 2018 13:55 UTC](https://meta.discourse.org/t/delay-in-loading-suggested-topics/87163/1 "2018-05-10T13:55:17Z")

</div>

Suggested Topics if the answer is more than 20, the display is delayed. Looked at the code and I can’t find where the delay in displaying is carried out.

Thanks

---

<div class="post-metadata">

**Author:** ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)\
**Post date:** [11 Maio , 2018 07:12 UTC](https://meta.discourse.org/t/delay-in-loading-suggested-topics/87163/3 "2018-05-11T07:12:45Z")

</div>

> [@codinghorror](#):
>
> So you have set “Suggested Topics” to 20 from its default of 5?

No, it’s a little different. Let’s say I walk into a topic where there are 100 answers. And I start to scroll down. Suggested Topics they’ll load when I get to the bottom of the list. This is the right behavior. I am interested in exactly the piece of code that implements this delay.

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [11 Maio , 2018 07:35 UTC](https://meta.discourse.org/t/delay-in-loading-suggested-topics/87163/4 "2018-05-11T07:35:58Z")

</div>

The controller is aware it does not need to send the data down so it leaves that part in the serializer blank. When we ask for the last chunk we include suggested with it.

Have a look at the network tab in chrome and look through the various payloads.

---

<div class="post-metadata">

**Author:** ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)\
**Post date:** [11 Maio , 2018 08:05 UTC](https://meta.discourse.org/t/delay-in-loading-suggested-topics/87163/5 "2018-05-11T08:05:00Z")

</div>

Thank you! I forgot about that possibility.

The end of, he loads

`.../t/N/posts.json?post_ids[]=N-1&post_ids[]=N-last`

and there emerges

`suggested_topics`

👍
