当使用twitch API时,Google Chrome变黑1秒钟,并用绿色阴影显示我所有的剪​​辑(iframe)

时间:2018-11-30 16:17:57

标签: javascript php google-chrome twitch

该网站使用php从抽搐中检索了12个剪辑,并将它们全部显示在iframe中。当我仅显示4时,它可以工作,但是12时会引起一些严重的问题。它适用于Firefox,但也需要适用于Google Chrome。当我只是在回声iframe时,我对它们没有太多控制权。

我已经在twitch开发者论坛上发布了两个控制台错误,这是正常现象,不应引起任何问题,这些错误是:

Uncaught (in promise) DOMException: Failed to execute 'postMessage' on 
'Window': Invalid target origin 

Failed to load resource: the server responded with a status of 401 ()

显示4个剪辑时我得到了这些,没有问题。

我认为可能是导致此问题的原因是此消息(我收到了12条消息):

Deprecation] chrome.loadTimes() is deprecated, instead use standardized API: Paint Timing. <URL>

然后在最后我收到以下消息:

[Violation] 'requestAnimationFrame' handler took 85ms

感谢您的阅读,非常感谢您的投入。

0 个答案:

没有答案