A Parser-blocking, cross-origin script is invoked via document.write - how to circumvent it?

125,797

Solution 1

According to Google Developers article, you can:

Solution 2

@niutech I was having the similar issue which is caused by Rocket Loader Module by Cloudflare. Just disable it for the website and it will sort out all your related issues.

Solution 3

Don't use document.write, here is workaround:

var script = document.createElement('script');  
script.src = "....";  
document.head.appendChild(script);
Share:
125,797
niutech
Author by

niutech

Updated on July 08, 2022

Comments