# Firefox 使用 Phoenix Patchset 时，主题/回复文本框卡顿

**URL:** https://meta.discourse.org/t/topic-reply-textbox-lagging-using-phoenix-patchset-on-firefox/388717
**Category:** Bug
**Tags:** composer
**Created:** [2025年十一月17日 15:42 UTC](https://meta.discourse.org/t/topic-reply-textbox-lagging-using-phoenix-patchset-on-firefox/388717 "2025-11-17T15:42:31Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![cmahns](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmahns/32/329271_2.png) [@cmahns](https://meta.discourse.org/u/cmahns)
#### Post date: [2025年十一月17日 15:42 UTC](https://meta.discourse.org/t/topic-reply-textbox-lagging-using-phoenix-patchset-on-firefox/388717/1 "2025-11-17T15:42:31Z")

</div>

大家好，我将此 bug 从我提交给 Phoenix（Firefox 强化补丁集，IronFox 在 Android 上也使用）的 bug 中交叉发布：

> **[\[WEB COMPAT\] Textbox Slowness on Discourse Forums](https://codeberg.org/celenity/Phoenix/issues/189)**
>
> \### Confirmation
> 
> \- \[x\] Please confirm that you have already checked the Website Compatibility wiki page (https://phoenix.celenity.dev/compat), and that this issue is NOT currently listed.
> 
> \### Which domain(s) are you experiencing this issue on?
> 
> I...

似乎该问题与此功能使用的 Javascript 有关，不确定这是否可以解决，但认为值得标记。Chromium 浏览器或 Vandium 等强化分支中不会出现此行为。

---

<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: [2025年十一月17日 22:25 UTC](https://meta.discourse.org/t/topic-reply-textbox-lagging-using-phoenix-patchset-on-firefox/388717/2 "2025-11-17T22:25:36Z")

</div>

回复在 bug tracker 上是：

> 感谢您的报告！抱歉回复晚了。我能够重现该问题，并且似乎是以牺牲安全性为代价，将 `javascript.options.baselinejit` 设置为 `true` 应该可以解决它。此功能似乎优化得很差 - 我可以看到它即使在标准的 Firefox 上也会在控制台中产生大量错误。性能下降可能也会发生在禁用 JIT 的其他浏览器上\*（例如 Cromite、Microsoft Edge、Safari、Tor Browser、Vanadium）\*，因此他们肯定需要修复它。  
> 我已经在 Web Compat 页面上记录了这一点。

我没有在控制台中看到任何垃圾信息，您能和我们分享一下吗？

我确实稍微看了一下性能分析，显然我们无法在任何编译 JIT 的浏览器上重现这些问题，但据我所知，减速并不是来自 ProseMirror 这个底层库。

@cmahns 您能否确认在默认设置下，在 [https://prosemirror.net/](https://prosemirror.net/) 中输入内容时没有注意到任何减速？

据我所知 @david / @renato，输入时最慢的部分来自 Ember runloop 上的排队。
