我正在异步使用以下代码,获取用于分析跟踪的脚本,我不希望它影响性能(已经过了):
<script type='text/javascript'>
$.getScript('HTTP://url.com');
</script>
</body>
当我使用此代码时,我在cosole中收到以下错误:
Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.
如何解决这个问题?