Last active
October 24, 2022 18:01
-
-
Save brianleejackson/72f21095a3dddbd07de6223c8bb92a45 to your computer and use it in GitHub Desktop.
Ninja Forms Perfmatters Delay JS exclusions example. https://perfmatters.io/docs/delay-javascript/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('perfmatters_delay_js_exclusions', function($exclusions) { | |
if(is_page(275)) { | |
$exclusions[] = 'underscore.min.js'; | |
$exclusions[] = 'backbone.min.js'; | |
$exclusions[] = 'front-end-deps.js'; | |
$exclusions[] = 'front-end.js'; | |
$exclusions[] = 'nf-'; | |
$exclusions[] = 'jquery.min.js'; | |
$exclusions[] = 'nfForms'; | |
} | |
return $exclusions; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment