What this means is, you will be able to use wp_enqueue_script for your scripts just like the built in scripts that come with WordPress; The parameter structure for wp_register_script is exactly the same as the wp_enqueue_script structure, so I'm not going to go over . Remove Plugin Stylesheets and Scripts in WordPress Put your pitchforks down, developers. Get useful blogging, marketing and learning resources, delivered to your mailbox. It is important to note however, that the way you add these scripts to WordPress is just as important as the content of these files. The three most commonly cited reasons to dequeue WordPress' bundled version of jQuery in favor of Googles are: Decreased Latency. (The script should also fire on ready, not direct document.writes on load. here's the .js that remove the file : function dequeue_scripts(){ wp_dequeue_script("refrakt-stickymenu"); //disable sticky menu } add_action("wp_print_scripts","dequeue_scripts", 0); What am I doing wrong ? I think I have that part correct, but I can't figure out why the script still loads. It only takes a minute to sign up. . Because of EU GDPR reasons I need to dequeue recaptcha which afterwards will be injected after user consent. Loading these 8 extra files may slow down your blog which may create some negative impact Google Search Engine Result (SERP) page.. wp_dequeue_script( 'js-file' ); No need to do so though, simply removing the initial add_action() call to enqueue will accomplish that. How to Remove / Dequeue BuddyPress Scripts - ClickNathan norcanna-wordpress/functions.php at main · Yeasir/norcanna-wordpress add_action( 'wp_enqueue_scripts', 'dequeue_dequeue_plugin_style', 999 ); ?> Unfortunately, this did not work. Now as we know from Speed Optimization Goal, it's absolutely not required to load all these 8 additional resources except cart, checkout or product page. ), Scripts Dequeuer Backend can detect all such scripts/stylesheets and list them inside WordPress admin area. At wpSocket, we aim to bring the best WordPress Developers, Administrators, Bloggers, Outsourcers, Freelancers, Site Owners, Buyers, Sellers under the same hub and spoke.