# Frequent categories -json loading error

**URL:** https://meta.discourse.org/t/frequent-categories-json-loading-error/336541
**Category:** Development
**Created:** [November 17, 2024, 12:21am UTC](https://meta.discourse.org/t/frequent-categories-json-loading-error/336541 "2024-11-17T00:21:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Steve\_John](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steve_john/32/435022_2.png) [@Steve\_John](https://meta.discourse.org/u/Steve_John)
#### Post date: [November 17, 2024, 12:21am UTC](https://meta.discourse.org/t/frequent-categories-json-loading-error/336541/1 "2024-11-17T00:21:03Z")

</div>

We have customized our Discourse theme and implemented JavaScript for UI behavior to show different text for buttons based on different navigation menu. However, we frequently encounter an error when switching between categories, especially if we click quickly while the page is still loading. We’ve tried increasing the rate limit, but it hasn’t resolved the issue. How can we minimize or prevent this kind of error?

 ![The image depicts the error message that occurs when attempting to load a .c file, with a sad face icon and a message stating 'Something went wrong'. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/5/a/4/5a41256c88485ea8e60d63638bac9147237ad449.jpeg)

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [November 18, 2024, 2:48pm UTC](https://meta.discourse.org/t/frequent-categories-json-loading-error/336541/2 "2024-11-18T14:48:02Z")

</div>

There should be more information under `yourinstance.tld/logs` when this error happens in the UI. Can you find a matching log entry and share the backtrace?
