Use code PERFMATTERS for an extra 10% off!

General

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...

Disable WooCommerce cart fragments AJAX (wc-ajax=get_refreshed_fragments)

WooCommerce sites, especially large ones, almost always encounter load time issues with the following AJAX request. https://domain.com/?wc-ajax=get_refreshed_fragments Even on our...

How to enable lazy load in WordPress (images, iframes, and videos)

With content on the web getting longer, it’s important to take advantage of features like lazy load in WordPress to...

How to enable Local Analytics (host Google Analytics on your WordPress site)

Hosting Google Analytics locally can help speed up your site by reducing extra DNS lookups and resolving the “leverage browser...

How to preload a resource in WordPress

Preload allows you to specify resources (such as fonts, images, JavaScript, and CSS) that are needed right away or very...

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...

How to remove unused CSS in WordPress

The “Reduce unused CSS” warning is triggered by PageSpeed Insights when you have code being loaded by a plugin or...

How to defer JavaScript in WordPress

Due to the nature of how JavaScript works, you will most likely see an “Eliminate render-blocking resources” warning in speed...

How to remove jQuery Migrate in WordPress

They started adding jQuery Migrate in WordPress 3.6. Most up-to-date frontend code and plugins don’t require jquery-migrate.min.js. It’s for themes...

How to remove Dashicons in WordPress (dashicons.min.css)

Dashicons is the official icon font of the WordPress admin as of 3.8. Some themes and developers utilize this (dashicons.min.css) on...

How to prefetch a link (URL) in WordPress using Instant Page

Our Instant Page feature lets you automatically prefetch URLs in the background after a user hovers over a link. This...

How to implement DNS prefetching in WordPress

DNS prefetching allows you to resolve domain names (perform a DNS lookup in the background) before a user clicks on...

How to disable the WordPress REST API

The WordPress REST API provides API endpoints for WordPress data types that allow developers to interact with sites remotely by...

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....

How to remove shortlink in WordPress

By default, the following tag shows up in every WordPress install. <link rel='shortlink' href='https://domain.com?p=712' /> This is used for a shortlink to...

How to implement preconnect in WordPress

Preconnect allows the browser to set up early connections before an HTTP request, eliminating round-trip latency and saving time for...

How to host Google Fonts locally in WordPress

There have always been a few advantages to hosting Google Fonts locally instead of using Google’s CDN. However, as of...

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...

How to disable XML-RPC in WordPress

XML-RPC was added in WordPress 3.5 and allows for remote connections, and unless you are using your mobile device to...

Filters to further customize Perfmatters

Below is a list of all the filters available in Perfmatters. These allow you to further customize the plugin. If...

How to disable Google Maps API in WordPress

Some WordPress themes and plugins have Google Maps API built-in and unfortunately sometimes don’t have a way to turn it...

How to change WordPress login URL

Sometimes the smallest of changes can make a huge impact when it comes to performance as well as security. By default,...

How to disable Google Fonts in WordPress

Google Fonts is a great service, but there are some scenarios when you might need to disable Google Fonts. Here...

How to remove WordPress REST API links

The WordPress REST API enables the CMS to communicate with other web properties, no matter what programming language they’re written...

How to use the Script Manager’s MU mode to disable WordPress plugins

The Script Manager is a very powerful tool and lets you easily disable front-end scripts on a per post/page or...