admin管理员组文章数量:1316019
We all want to make our site faster, google showed a few samples here: .html
We use OpenX to serve ads, so, assuming browser supporting (FF3.6+), I presume we can just modify the OpenX ad tag from :
<script type='text/javascript'> ... ad codes </script>
into
<script type='text/javascript' async> ... ad codes </script>
Will that do the job? Is there a better way to load scripts asynchronously?
We all want to make our site faster, google showed a few samples here: http://code.google./speed/articles/html5-performance.html
We use OpenX to serve ads, so, assuming browser supporting (FF3.6+), I presume we can just modify the OpenX ad tag from :
<script type='text/javascript'> ... ad codes </script>
into
<script type='text/javascript' async> ... ad codes </script>
Will that do the job? Is there a better way to load scripts asynchronously?
Share Improve this question edited Sep 30, 2010 at 19:16 Mauricio Scheffer 99.8k24 gold badges195 silver badges279 bronze badges asked Jun 24, 2010 at 2:01 MMGN.MMGN. 1132 silver badges8 bronze badges 1- If you're allready stuck in this point. I wrote a wrapper over here. http://stackoverflow./questions/18955887/ajaxloading-openx-with-jquery-and-php – mxsteini Commented Nov 12, 2013 at 13:57
2 Answers
Reset to default 4Unfortunately OpenX uses document.write to do most of its work. This means that it will attempt to write at whatever point in the flow its currently on when the script actually runs. I've tried changing the OpenX javascript snippet itself to not use document.write, but discovered that the response from OpenX often contains document.writes as well.
has anyone tried this with openx tags?
http://jqueryad.web2ajax.fr/
本文标签: javascriptOpenX Async TagsStack Overflow
版权声明:本文标题:javascript - OpenX Async Tags - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741985060a2408625.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论