• Resolved mikehaceman

    (@mikehaceman)


    Hello

    I have noticed an error in google chrome dev tool:

    A Parser-blocking, cross-origin script, https://ajax.cloudflare.com/cdn-cgi/nexp/xx/cloudflare.min.js, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity.
    autoptimize_cxx.js:1
    JQMIGRATE: Migrate is installed, version 1.4.1

    Is it possible for you to tell me what does it mean – and possible how to get rid of this problem?

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Frank Goossens

    (@futtta)

    Well, this means your site has javascript that loads cloudflare.min.js (the “parser-blocking cross-origin script) in a non-optimal manner (the “document.write”). As AO simple aggregates all JS in your site, you’ll have to look for the original script doing the document.write. For tthat purpose you can disable AO on a per-request basis by adding ?ao_noptimize=1 to your URL and checking your google chrome dev tool again.

    the JQMigrate message is just jQuery migrate confirming it is loaded, this is perfectly normal.

    hope this clarifies,
    frank

    Thread Starter mikehaceman

    (@mikehaceman)

    Hi Frank

    Thanks for the answer – it sounds like clodflare is doing something weird.
    Your plugin is still awesome ??

    THanks!

    Sorry for hijacking an old thread.

    Recently I switched my DNS to CloudFlare. Now on Chrome, I am unable to add products to the cart. Found this in Chrome developer console.

    A Parser-blocking, cross-origin script, https://ajax.cloudflare.com/cdn-cgi/nexp/dok3v=088620b277/cloudflare.min.js, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity. See https://www.chromestatus.com/feature/5718547946799104 for more details.

    Things are fine with FireFox.

    Do we have any fix for this?

    Plugin Author Frank Goossens

    (@futtta)

    are you using autoptimize mayasl? can you share your URL?

    I installed AutoOptimize and uninstalled now.
    URL : qtari.com

    Plugin Author Frank Goossens

    (@futtta)

    well, the warning is no reason to uninstall AO, as the document.write is in the cloudflare code itself;

    
    //<![CDATA[
    try{if (!window.CloudFlare) {var CloudFlare=[{verbose:0,p:1480765377,byc:0,owlid:"cf",bag2:1,mirage2:0,oracle:0,paths:{cloudflare:"/cdn-cgi/nexp/dok3v=1613a3a185/"},atok:"416e3148188f9cb365dd1fed35e9aab9",petok:"753a25d8710633874a9a60a281a064c1556d48ba-1480785584-1800",zone:"qtari.com",rocket:"a",apps:{}}];document.write('<script type="text/javascript" src="//ajax.cloudflare.com/cdn-cgi/nexp/dok3v=088620b277/cloudflare.min.js"><'+'\/script>');}}catch(e){};
    //]]>

    so if this is an issue, you might want to take it up with the cloudflare team?

    frank

    I had the same error on a woocommerce checkout page and simply disabled Rocket Loader in Cloudflare. The issue disappeared.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Parser-blocking ?’ is closed to new replies.