Are you also using WP Meteor to improve your site’s load time and your site is breaking? If yes then you need to read this article carefully till the end.
Today we are going to talk about those issues which comes after activating or configuring WP Meteor on the site.
Many times we get stuck in a situation where site is breaking due to WP Meteor but we also need this plugin as it improves the load time of the site a lot.
Sometimes it becomes impossible to come out of such a situation. It is very challenging to fix these issues. But you can get rid of them by making some changes in WP Meteor.
How To Exclude A Page From Optimization?
After installing the plugin it gives you some options under “Settings > WP Meteor” in the WordPress backend. You can read this article to know how WP Meteor works.
Here you can exclude a script from the optimization process.
But we will use wpmeteor_enabled filter as we need to exclude a page from the optimization.
You need to add the following code snippet in your theme’s functions.php
file.
Example:
add_filter('wpmeteor_enabled', function ($value) {
global $post;
if ($post && $post->ID == 123) {
return false;
}
return $value;
});
Here post ID refers to the page you want to exclude from optimization so that your page doesn’t break.