Site logo

[Resolved] Want to know if this can affect to the plugin performance

Home Forums Support [Resolved] Want to know if this can affect to the plugin performance

Home Forums Support Want to know if this can affect to the plugin performance

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1528995
    Jorge

    Hi there. I am going to disable two JS scripts that WordPress charges and I´d like to know if they can affect to my plugin´s performance.
    The reason is because they make load slower my page in Firefox, and only in that browser.

    1- wp-embed.min.js?ver=5.53. I will use this function:
    function my_deregister_scripts(){
    wp_deregister_script( ‘wp-embed’ );
    }
    add_action( ‘wp_footer’, ‘my_deregister_scripts’ );

    2- wp-emoji-release-min.js?ver=5.5.3 I will use theese scripts:
    remove_action( ‘wp_head’, ‘print_emoji_detection_script’, 7 );
    remove_action( ‘wp_print_styles’, ‘print_emoji_styles’ );

    Thanks

    #1529001
    Leo
    Staff
    Customer Support

    Hi there,

    We wouldn’t have the answer to this question.

    I would recommend doing a before/after speed test when you add the snippets to remove the scripts.

    Also make sure doing so won’t break anything.

    #1529032
    Jorge

    Leo, I´ve made it and loads much better. Really it loads asl usual until some weeks ago and only the problem is in Firefox.
    What I pretended is to know if that functions can affect to the performance of Generate Press. anyway I´m going to wathc if any thing stop working. Thanks

    #1529067
    Leo
    Staff
    Customer Support

    Sounds good 🙂

    #1529385
    Jorge

    Leo, as this is a really strange behavior because it only happens in Firefox but not in Chrome, I want to ask you if you have heard or notice anything from other user about the same problem. (I´ve checked it in more that one different Firefoxes, in private mode)

    I´d like to check it with you because perhaps yo find where can be the problem so can apply a different solution from this and, the most important, as I suppose that I´m not the only user with this problem, perhaps the solution can be useful for other users.

    If you think so, I can activate both Js again, you can check the performance in Chrome and firefox, see the difference, and when you tell me that you have checked, I deactivate them again and you check it again.

    I´ll wait for your answer. Thanks again

    #1530131
    Leo
    Staff
    Customer Support

    Are you referring to the two scripts you’ve mentioned?

    If so I’ve not heard other users trying to remove them before and would assume it would cause some issues.

    Both of those scripts are from core WordPress so I would assume it’s needed.

    Might be good to check with WordPress support on this if you need more info.

    #1530334
    Jorge

    Perfect leo. thanks a lot. We can close this thread. Thanks

    #1530409
    Leo
    Staff
    Customer Support

    No problem 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Want to know if this can affect to the plugin performance’ is closed to new replies.