• Hi
    As I’m using WP Rocket cache, your plugin is doing that:

    if ( _wpcf7.cached ) {
    this.wpcf7OnloadRefill();
    }

    This cause to do an long Ajax call: https://s21.postimg.org/dkrbuhm5z/capture_152.jpg

    So I have neutralized this call but I would like to know if it is safe or is there a safer way to do it?

    I see that this function is related to captcha or quiz, and I do not use botm of them.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    We have the same issue.

    How have you neutralized this call?

    Thanks

    In case someone else wants to disable the _wpcf7_is_ajax_call, we have overwritten wpcf7OnloadRefill();

    We added this in the functions.php

    //CF7 disable ajax
    add_action('wp_footer','myscript_in_footer',200);
    function myscript_in_footer(){
    ?>
    <script type="text/javascript">
    	(function ( $ ) { 
    	 	$.fn.wpcf7OnloadRefill=function(){
    	 		return "";
    	 	};
    	}( jQuery ));
       
    	</script>
    <?php
    }
    Thread Starter pako69

    (@pako69)

    Hi @stijndw and thanks for sharing this tips ??
    What I did before was very dirty because I was doing that below in the file script.js

    if ( _wpcf7.cached ) {
    // this.wpcf7OnloadRefill();
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Is it safe to not use wpcf7OnloadRefill() function?’ is closed to new replies.