可延迟的document.write [英] Deferrable document.write
本文介绍了可延迟的document.write的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
部分使用旧的document.write方法,在我的案例中是AdTech. 是否可以覆盖document.write方法以在onload事件之后延迟?
alot of web advertising providers use the old document.write method, in my case AdTech. Is it possible to overwrite the document.write method to defer after the onload event?
推荐答案
使用任一方法
- writecapture( https://github.com/iamnoah/writeCapture )一个辅助Ajax的实用程序加载包含使用document.write或 的脚本标签的HTML
- PostsScribe( https://github.com/krux/postscribe/),您可以进行交付异步广告,而无需修改广告代码.
- writecapture (https://github.com/iamnoah/writeCapture) an utility to assist the Ajax loading of HTML containing script tags that use document.write or
- PostsScribe (https://github.com/krux/postscribe/) which lets you deliver a synchronous ad asynchronously without modifying the ad code.
这篇关于可延迟的document.write的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文