我正在使用GPT在我的网站上加载广告。有时,当调用googletag.display("div-gpt-ad-1516701398401-0")
时,我在控制台中收到以下错误-
Screenshot of console
错误显示-Refused to apply style from 'http://tpc.googlesyndication.com/safeframe/1-0-29/html/css/stylesheet.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
如果没有发生此错误,则表示广告已完美加载。我的实现中可能有任何问题,还是由于样式表而导致错误?
我能够找到的内容:根据Stylesheet not loaded because of MIME-type,当样式表在文件的开头包含注释时,通常会出现此错误。我还看到,加载到Safeframe容器中的样式在开始时确实有注释。但是我不确定如果这是实际原因,为什么会随机发生?