Hi, and why would you need to do that?
There is already an option to disable it for logged in users, just enable the fix page editors option.
Whatever the reason to disable it on fvm, you are probably better off solving the conflicts or trying different settings:
https://ww.wp.xz.cn/plugins/fast-velocity-minify/faq/
As for disabling on the home, you can do it with some code on functions.php
# disable FVM on homepage
if(is_home || is_front_page()) {
if(function_exists('fastvelocity_min_merge_header_scripts')) {
remove_action('wp_print_scripts', 'fastvelocity_min_merge_header_scripts', PHP_INT_MAX );
remove_action('wp_print_footer_scripts', 'fastvelocity_min_merge_footer_scripts', 9.999999 );
remove_action('wp_print_styles', 'fastvelocity_min_merge_header_css', PHP_INT_MAX );
remove_action('wp_print_footer_scripts', 'fastvelocity_min_merge_footer_css', 9.999999 );
remove_action('init', 'fastvelocity_min_disable_wp_emojicons');
remove_action('template_redirect', 'fastvelocity_min_html_compression_start', PHP_INT_MAX);
remove_filter('style_loader_src', 'fastvelocity_remove_cssjs_ver', 10, 2);
remove_filter('script_loader_tag', 'fastvelocity_min_defer_js', 10, 3);
remove_filter('script_loader_tag', 'fastvelocity_min_defer_js_optimize', 10, 3);
}
}
Thank you very much for your reply.
I need to show a map on the homepage. But I don’t need to show it on other pages. The plugin works very well for my other pages. but on the main page is breaking the map. For this, I also need to disable Homepage. I tried all the settings, but it didn’t work.
If you put an option to exclude Homepage, it is a good feature.