• Resolved Fzn.shaikh

    (@fznshaikh)


    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 3 years, 9 months ago by Fzn.shaikh.
Viewing 11 replies - 1 through 11 (of 11 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.

    Hi Alex,

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

    Thanks

    • This reply was modified 3 years, 8 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

    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.

    MD Tareq

    (@mdtareqhassan)

    How to disable this for all product pages?

    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.

    How Exactly Should I exclude jquery?

    Plugin Author Aleksandr Guidrevitch

    (@aguidrevitch)

    Hi @tishant, @mdtareqhassan , @seopumpkin , @fznshaikh !

    The UI for excluding scripts was added in v2.2.0, please try and let me know how it went !

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Exclude a script’ is closed to new replies.