Support » Plugin: WP Meteor Page Speed Optimization Topping » Exclude a script

  • Hey Alex,
    Awesome work with the plugin.
    It’s innovative.
    However, it would be great if we could exclude certain scripts.
    Is there a way to do it? Thanks.

    • This topic was modified 2 months, 2 weeks ago by Fzn.shaikh.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Aleksandr Guidrevitch

    (@aguidrevitch)

    That’s my top priority, but I’m bouncing between bugreports 😉 You can use data-wpmeteor-nooptimize=”true” attribute while I’m working on UI, but be prepared for including jQuery and a lot of other stuff as well, so your performance gains will decrease with each of extra script excluded from optimization.

    seopumpkin

    (@seopumpkin)

    Hi Alex,

    Kindly let me know how do I exclude a page from Meteor?

    Thanks

    • This reply was modified 2 months ago by seopumpkin.
    Plugin Author Aleksandr Guidrevitch

    (@aguidrevitch)

    @seopumpkin, oh, that’s actually a good question. Currently there is no possibility, but I can quickly implement some filter you can use to disable optimization, will that work?

    Just curious, which page would you want to exclude?

    Plugin Author Aleksandr Guidrevitch

    (@aguidrevitch)

    @seopumpkin , in v1.5.0 I added ‘wpmeteor_enabled’ filter that you can use to disable optimization whenever you want

    
    <?php
    add_filter('wpmeteor_enabled', function ($value) {
        global $post;
        if ($post && $post->ID == 1) {
            return false;
        }
        return $value;
    });
    
    Plugin Author Aleksandr Guidrevitch

    (@aguidrevitch)

    @seopumpkin , you should return false from this filter in order to disable WP Meteor

    seopumpkin

    (@seopumpkin)

    Thanks a lot Alex.

    Some of my pages were having conflict I think due to too many scripts, like form don’t work, etc..

    I hope you implement this features soon from GUI.

    Are you planning to have PAID version?

    Thanks

    Plugin Author Aleksandr Guidrevitch

    (@aguidrevitch)

    @seopumpkin Can you please share the pages that have issues?
    What features would you want to see in the paid version?

    I got error with WP Form:

    ==

    “WP Forms detected an error with JavaScript on this page. JS is required for the functioning of this form, it could be possible that the form won’t work as expected anymore. ……. This message is only shown to site admins

    ==

    What features would you want to see in the paid version?

    I think images optimization for paid version, compress, webp , more control of pages.

    I hope this is helpful.

    Thanks. Plugin is great so far.

    Tareq

    (@mdtareqhassan)

    How to disable this for all product pages?

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.