# 标签和分类下拉列表真的需要通过额外的 HTTP 请求进行动态加载吗？

**URL:** <https://meta.discourse.org/t/do-tags-and-category-dropdowns-really-need-dynamic-load-with-an-extra-http-request/369102>\
**Category:** UX\
**Created:** [2025年六月6日 06:27 UTC](https://meta.discourse.org/t/do-tags-and-category-dropdowns-really-need-dynamic-load-with-an-extra-http-request/369102 "2025-06-06T06:27:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)\
**Post date:** [2025年六月6日 06:27 UTC](https://meta.discourse.org/t/do-tags-and-category-dropdowns-really-need-dynamic-load-with-an-extra-http-request/369102/1 "2025-06-06T06:27:01Z")

</div>

对于一个拥有 100…500 个标签的论坛来说，这对于 Discourse 开启时一次性加载并保存在内存中的数据大小来说，根本算不上什么。

目前，每次我选择一个标签，我都必须等待它向服务器发出 http 请求，以便在使用我目前输入的字符在所有标签中进行搜索。这真的真的有必要吗？它极大地恶化了用户体验，令人恼火，如果预先加载所有标签并保持可用，并在浏览器中构建一些二叉搜索树，它就可以是即时的，不是吗？

无论如何，这是我的建议。

类别也是如此。真的，大多数时候你只有 20-50 个类别，但你仍然不断发出 http 请求并显示一条蓝色的进度条，这让它看起来很笨重和缓慢，而它本可以是即时的。

我建议只有在有很多项目需要搜索时才回退到 http 请求。比如，至少一千个左右？否则，考虑到用户的权限等，所有这些都可以为当前用户预先加载。

---

<div class="post-metadata">

**Author:** ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)\
**Post date:** [2025年六月6日 06:30 UTC](https://meta.discourse.org/t/do-tags-and-category-dropdowns-really-need-dynamic-load-with-an-extra-http-request/369102/2 "2025-06-06T06:30:13Z")

</div>

我完全不了解背后的技术，但这可能是由于您的连接速度慢或服务器问题造成的吗？因为我从来没有遇到过这种情况，无论是在我自己的论坛、这里还是几乎任何地方。
