Home Forums Front-end Issues Front-end form is creating 2 posts Reply To: Front-end form is creating 2 posts

  • UPDATE: I was able to determine it is a plugin I am using to defer the loading of all JavaScripts added by the way of wp_enqueue_script().

    WP Deferred JavaScripts

    The plugin does provide a way to exclude a script from being deferred but I am not sure where to look for the script ACF is using.

    Here is the filter the plugin provides:

    // Don't defer this script.
    add_filter( 'do_not_defer', 'exclude_canvas_script' );
    function exclude_canvas_script( $do_not_defer ) {
        $do_not_defer[] = 'my-canvas-script';
        return $do_not_defer;

    Anyone know if there is a way to use this with ACF?