• Does it work with Cloudflare?

    I unchecked the boxes in Cloudflare for minifying CSS en JS and checked this in Autoptimize. I clicked on Apply Defer in AsyncJS, but nothing is defered. Only the Autoptmize caching script.

    Thank you in advance.

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

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

    (@optimizingmatters)

    Avond mckbgrd;
    Had a quick look and a.o. jquery.js, the google maps JS and the recaptcha JS do have defer="defer" set, so all seems right?

    Groeten uit België,
    frank

    Thread Starter mckbgrd

    (@mckbgrd)

    Hi Frank,

    How did you checked it? If look into the broncode I only see defer=”defer” one time.

    Besides to this, I removed these three scripts and clicked on Apply Defer to defer all the scripts. I cleared the cache, but not all the scripts ared defered.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    I did a simple view-source on your site’s frontpage, see screenshot below;

    What other script would you want to see deferred but are not?

    Thread Starter mckbgrd

    (@mckbgrd)

    I cleared the browser cache and I’m seeing the defer attributes now.

    Anyway, the field for scripts to defer is empty in the plugin settings. I clicked on Apply Defer in quick settings, but the old settings aren’t erased. How does it come?

    I would like to defer JS scripts form external resources, like Google ads.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    your google ads are being loaded async already actually;

    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

    deferring them is not unlikely to break stuff 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Compatible with Cloudflare?’ is closed to new replies.