• Resolved palmtek

    (@palmtek)


    Is there a way to comment out Preconnect Headers and Preload Headers so that I can leave them in the field without having to remove them entirely?
    I know, I could always save them elsewhere, but I’m lazy.
    It would make testing easier.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Raul P.

    (@alignak)

    If you want to prevent FVM from generating any headers, look into fvm.php and comment out lines 260 to 263. All code has comments for what it does.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Is there perhaps a filter that can be used? When user’s edit a plugin’s files then they lose that when the plugin is updated.

    Plugin Author Raul P.

    (@alignak)

    @jdembowski thanks, but the user specifically asked for a “comment out” option, probably for code testing.

    That being said, it’s also possible to remove the filters via functions.php on your theme.

    # headers
    remove_action( 'send_headers', 'fvm_extra_preload_headers' );
    remove_action( 'wp_footer', 'fastvelocity_generate_preload_headers', PHP_INT_MAX);
    remove_filter( 'script_loader_tag', 'fastvelocity_collect_js_preload_headers', PHP_INT_MAX);
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Preconnect Headers’ is closed to new replies.