# Body class from category not loading on topics on first load?

**URL:** <https://meta.discourse.org/t/body-class-from-category-not-loading-on-topics-on-first-load/32463>\
**Category:** Bug\
**Created:** [24. August 2015 um 11:47 UTC](https://meta.discourse.org/t/body-class-from-category-not-loading-on-topics-on-first-load/32463 "2015-08-24T11:47:22Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [26. August 2015 um 18:00 UTC](https://meta.discourse.org/t/body-class-from-category-not-loading-on-topics-on-first-load/32463/6 "2015-08-26T18:00:15Z")

</div>

FYI: I had to revert my previous fix as it broke the class on the topics list. Here’s the proper fix (with a memory leak fix 🍰)

[https://github.com/discourse/discourse/commit/31f0300b06304b056e700d6c097928b8e90763c0](https://github.com/discourse/discourse/commit/31f0300b06304b056e700d6c097928b8e90763c0)

---

_[View the full topic](https://meta.discourse.org/t/body-class-from-category-not-loading-on-topics-on-first-load/32463)._
