- This topic has 7 replies, 2 voices, and was last updated 5 years, 4 months ago by
Leo.
-
AuthorPosts
-
November 12, 2020 at 2:28 pm #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
November 12, 2020 at 2:31 pm #1529001Leo
StaffCustomer SupportHi 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.
November 12, 2020 at 3:11 pm #1529032Jorge
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. ThanksNovember 12, 2020 at 4:31 pm #1529067Leo
StaffCustomer SupportSounds good 🙂
November 13, 2020 at 12:45 am #1529385Jorge
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
November 13, 2020 at 8:49 am #1530131Leo
StaffCustomer SupportAre 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.
November 13, 2020 at 1:10 pm #1530334Jorge
Perfect leo. thanks a lot. We can close this thread. Thanks
November 13, 2020 at 3:04 pm #1530409Leo
StaffCustomer SupportNo problem 🙂
-
AuthorPosts
- The topic ‘Want to know if this can affect to the plugin performance’ is closed to new replies.