Archived topic
Want to know if this can affect to the plugin performance
7 replies · Started by Jorge on November 12, 2020
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
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.
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
Sounds good :)
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
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.
Perfect leo. thanks a lot. We can close this thread. Thanks
No problem :)