Support » Plugin: Spam protection, AntiSpam, FireWall by CleanTalk » CleanTalk_nocache.js being served twice – Gtmetrix

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support SergeM



    Thank you for your request.

    We have the answer to that question in the FAQ section here:

    I’m copying it here:

    I see two loads of script cleantalk_nocache.js. Why do you use it twice?
    This script is used for AJAX JavaScript checking. Different themes use different mechanisms of loading, so we use two methods for loading our script. If you absolutely know what you are doing, you can switch one of the methods off by defining constants in your wp-config.php file:
    define('CLEANTALK_AJAX_USE_BUFFER', false); //false - don't use output buffering to include AJAX script, true - use it
    define('CLEANTALK_AJAX_USE_FOOTER_HEADER', false); //false - don't use wp_footer() and wp_header() for including AJAX script, true - use it

    Please, mark this topic as “Resolved” if this reply helped you.

    Contact us anytime.

    Your CleanTalk Control Panel: [ ].

    Best regards.

    Thank you for that. Helped get it down to only one request. Cheers

    Plugin Support SergeM


    You are always welcome!

    Contact us anytime.

    All the best.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CleanTalk_nocache.js being served twice – Gtmetrix’ is closed to new replies.