Use code PERFMATTERS for an extra 10% off!

How to display script dependencies in the Script Manager

Seeing dependencies can be helpful to know which scripts are safe to disable or to troubleshoot a conflict. You can display script dependencies in the Script Manager to see the following two attributes: Required by Depends on In this example, you can see that dashicons is required by the admin-bar. In this example, you can … Read more

How to enable the Script Manager’s Testing Mode

We always recommend testing locally or on a staging site first when using the Script Manager, as you could break your site’s appearance. Your other option is to use Testing Mode. This lets you restrict your configuration to logged-in admins and only apply the changes to your public site when you’re ready. How to use … Read more

The Script Manager is redirecting to homepage

If you click into the Script Manager and it redirects you to your homepage, this could be because you have the Yoast SEO feature “Redirect ugly URLs to clean permalinks” enabled. In most cases, we recommend disabling this feature. Even Yoast SEO recommends not using this. However, if you do need it for some reason … Read more

How to disable scripts on a per post/page basis (Script Manager)

We now have a Script Manager in the Perfmatters plugin. This allows you to disable scripts on a per post/page basis. This is very powerful and can drastically increase the speed on your WordPress sites (especially your homepage). A few examples of what this can be used for: There are thousands of optimizations you can … Read more

How to delay JavaScript until user interaction in WordPress

While defer JavaScript pushes the script to the bottom of the page load, you can instead delay JavaScript based on user interaction. This can be a great way to significantly speed up the paint of the page for Google Lighthouse when something isn’t needed right away. Especially heavy third-party scripts like Google Adsense, Google Analytics, conversion pixels (FB, … Read more

How to disable or enable scripts with Regex

You can disable or enable scripts in the Perfmatters Script Manager using Regex (regular expressions). This is especially helpful for sites that have a more complex URL structure in place or dynamically generated pages (archives, search, etc.). How to use Regex If you aren’t familiar with Regex, we recommend utilizing this online tool: Kinsta … Read more

How to disable WooCommerce scripts and styles

When you have WooCommerce installed it by default loads its scripts and styles on every page of your WordPress site. This is definitely not great for performance. As you can see below on our test site, WooCommerce was loading 8 scripts on our home page, where we don’t even have any products. Disable WooCommerce scripts … Read more

How to hide the Perfmatters admin bar menu

Admin bar menus in WordPress can be great for providing shortcuts to commonly used features (such as clearing Used CSS or accessing the Script Manager). However, sometimes this area can get quite cluttered, and therefore we have an option to completely hide the Perfmatters admin bar. Hide Perfmatters admin bar Follow the steps below to … Read more