Disabling on specific page
-
I’m having an issue with my ninjaforms CSS map files not loading on a page. So I’m trying to disable all optimisations for the page, I’ve tried the following but the page still runs with FVM enabled.
I got this from a previous page on support, has something changed recently?
function disable_fvm_functionality() { if( is_page( 28129 ) ) { remove_action('wp_print_scripts', 'fastvelocity_min_merge_header_scripts', PHP_INT_MAX ); remove_action('wp_print_footer_scripts', 'fastvelocity_min_merge_footer_scripts', PHP_INT_MAX); remove_action('wp_print_styles', 'fastvelocity_min_merge_header_css', PHP_INT_MAX ); remove_action('wp_print_footer_scripts', 'fastvelocity_min_merge_footer_css', PHP_INT_MAX); remove_action('wp_print_styles', 'fastvelocity_add_google_fonts_merged', PHP_INT_MAX); remove_action('wp_print_footer_scripts', 'fastvelocity_add_google_fonts_merged', PHP_INT_MAX ); remove_action('init', 'fastvelocity_min_disable_wp_emojicons', PHP_INT_MAX); remove_action('template_redirect', 'fastvelocity_min_html_compression_start', PHP_INT_MAX); remove_filter('style_loader_src', 'fastvelocity_remove_cssjs_ver', PHP_INT_MAX); remove_filter('script_loader_tag', 'fastvelocity_min_defer_js', PHP_INT_MAX); remove_action('wp_footer', 'fvm_add_loadcss', PHP_INT_MAX); remove_action('admin_enqueue_scripts', 'fastvelocity_min_load_admin_jscss', PHP_INT_MAX); remove_action('style_loader_tag', 'fastvelocity_optimizecss', PHP_INT_MAX); } } add_action('template_redirect', 'disable_fvm_functionality');
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Disabling on specific page’ is closed to new replies.