XHR请求率在iframe中下降

发布于 2025-02-09 17:47:42 字数 174 浏览 2 评论 0原文

我创建了一个React应用程序,该应用程序以高速率发送XHR请求(来自网络摄像头的帧)(每秒大约10个电话),

当我从iFrame运行此应用程序时,速率下降到每秒1个调用,

但是,如果我将鼠标移到iframe XHR请求的速率每秒跳回10个电话,

如何在不移动鼠标上的iframe中获得高率?

I created a react app that sends XHR requests (frames from webcam) at a high rate (about 10 calls per second)

When I ran this app from an iframe the rate drops to 1 call per second

However, if I move the mouse over the iframe the rate of the XHR requests jumps back to 10 calls per second

How can I get the high rate inside the iframe without moving the mouse over the iframe?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文