• Resolved ak2447

    (@ak2447)


    I have some inline javascript for the Sectigo site seal that I can’t work out how to exclude. Works fine when I entirely deactivate the plugin but any number f exclusions I’ve tried don’t seem to work.

    Would you please be able to take a look and advise how to resolve this?

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    hmm, you seem to be also using perfmatters and have an option on in it to delay (inline) JS, can you disable that option for now to make sure there is no conflict there so we can troubleshoot this?

    Thread Starter ak2447

    (@ak2447)

    That setting is only delaying GA and FB scripts. I don’t have this script listed in there. After deactivating Perfmatters entirely nd flushing AO cache, issue still exists.

    Thread Starter ak2447

    (@ak2447)

    Also I went through and disable every AO JS related option but still the error remains. Only when deactivating does it load correctly.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    so what JS error(s) do you see on the browser console when it breaks ak2447 ?

    Thread Starter ak2447

    (@ak2447)

    Uncaught ReferenceError: TrustLogo is not defined

    This is the reference.
    TrustLogo("https://sectigo.com/images/seals/sectigo_trust_seal_sm_2x.png", "SECOV", "none");

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Ah, I *guess* you also have “defer jQuery” active in critical CSS’s advanced options, can you disable that and re-test?

    Thread Starter ak2447

    (@ak2447)

    Good catch. I didn’t actually remember CCSS had that option. Thanks. Is there anyway to defer this with AO to avoid render blocking?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    afraid not; the first inline JS uses document.write to load the Trustthingie JS, and inline JS that does document.write cannot be deferred/ asynced .. :/

    Thread Starter ak2447

    (@ak2447)

    OK thanks for the help.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome πŸ™‚

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Unable to ID where script breaks’ is closed to new replies.