Tuesday, 25 April 2017

How to Disable WordPress Plugins on Specific Pages and Posts

When it comes to WordPress performance we have a lot to say about plugins. Each plugin adds PHP code that has to be executed, can include scripts and styles, and some may execute additional queries against the database. This means that unnecessary plugins can affect page speed and may have a negative impact on user experience and page ranking. As an example, consider a plugin that builds and displays custom forms in front pages, like Contact Form 7. You typically only need a form on a single page. Do you really want to run the plugin code and include scripts and styles on every page of your website? In this post, I will demonstrate that you can install as many plugins as you need (don’t go crazy of course), and nevertheless make WordPress pages load fast. We’re going to disable WordPress plugins (that are unnecessary from loading on specific posts and pages. This will involve a four four-step process:
Choose the most popular plugins that fit your needs, and compare their features and effects on page speed.
Filter and deactivate unnecessary plugins before page loads.
Optimize CSS and JS files.
Track the site performance.
Let’s dive deep.
Three General Rules to Follow
Source: https://managewp.org/articles/14949/how-to-disable-wordpress-plugins-on-specific-pages-and-posts

source https://williechiu40.wordpress.com/2017/04/25/how-to-disable-wordpress-plugins-on-specific-pages-and-posts/

No comments:

Post a Comment