Snippets: Remove the easing script

The jQuery easing script is loaded with the theme to provide a nicer animation for the back to scroll button or other local scroll effects on the site. However, the script can be removed and the theme will use default animations instead.

add_action( 'wp_enqueue_scripts', function() {
    wp_deregister_script( 'wpex-easing' );
    wp_dequeue_script( 'wpex-easing' );

Version Required:5.3++

Snippet Type: PHP

Posted Under: Optimizations

All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)