- Jan 17, 2015
- 5,264
- 4,956
Some people have contacted me after this post because they cannot make their WP installations faster with Ezoic if they are using the Ezoic Integrator Plugin instead of loading the full script manually.
And there are many posts in this forum talking about how Ezoic is so slow for WPO reasons:
https://www.blackhatworld.com/seo/need-help-to-solve-the-ezoic-site-speed-trouble.1262534/https://www.blackhatworld.com/seo/help-ezoic-how-to-increase-page-speed.1298171/
So I'm going to try to solve all your issues at once, but be aware that you need a little coding skills to make this possible.
Don't PM me PLEASE.
If you don't know how to do this, or it's not working for you, please write in this message and we will try to solve it (and it will help others in your same situation)
Lets go:
First you must dequeue the scripts that the plugin loads. You can put this in your own plugin or in the functions.php of your child theme:
After this we need to check if scripts have been removed therefore, there will be thousands of JS errors in the console while Ezoic active.
We can check the HTML to see if this scripts have gone.
If this is working, now we should re-enqueue all scripts. Fortunately, they gave us all the endpoints:
https://g.ezoic.net/wp/endpoints.go
Essentially we have to attach
https://g.ezoic.net
To each endpoint, for example:
https://g.ezoic.net/detroitchicago/mesa.jsAnd enqueue this.
You can put many enqueue lines for each script.
The thing here is that, for each URL you create, you should be also configuring it in Flying Scripts with a 2 seconds delay at least.
Not sure why, but Ezoic Integrator is not enqueueing right the scripts, this is why we have to re-enqueue them.
This procedure can be greatly improved because I've made it up with what I used to do lately. Maybe we can sort out a better result for the future.
And there are many posts in this forum talking about how Ezoic is so slow for WPO reasons:
https://www.blackhatworld.com/seo/need-help-to-solve-the-ezoic-site-speed-trouble.1262534/https://www.blackhatworld.com/seo/help-ezoic-how-to-increase-page-speed.1298171/
So I'm going to try to solve all your issues at once, but be aware that you need a little coding skills to make this possible.
Don't PM me PLEASE.
If you don't know how to do this, or it's not working for you, please write in this message and we will try to solve it (and it will help others in your same situation)
Lets go:
First you must dequeue the scripts that the plugin loads. You can put this in your own plugin or in the functions.php of your child theme:
PHP:
function ezoic_dequeue() {
wp_dequeue_script('ezoic-integration');
}
add_action('wp_enqueue_scripts','ezoic_dequeue');
After this we need to check if scripts have been removed therefore, there will be thousands of JS errors in the console while Ezoic active.
We can check the HTML to see if this scripts have gone.
If this is working, now we should re-enqueue all scripts. Fortunately, they gave us all the endpoints:
https://g.ezoic.net/wp/endpoints.go
Essentially we have to attach
https://g.ezoic.net
To each endpoint, for example:
https://g.ezoic.net/detroitchicago/mesa.jsAnd enqueue this.
PHP:
function ezoic_requeue() {
wp_enqueue_script('ezoic_mesa',"https://g.ezoic.net/detroitchicago/mesa.js");
}
add_action('wp_enqueue_scripts','ezoic_requeue');
You can put many enqueue lines for each script.
The thing here is that, for each URL you create, you should be also configuring it in Flying Scripts with a 2 seconds delay at least.
Not sure why, but Ezoic Integrator is not enqueueing right the scripts, this is why we have to re-enqueue them.
This procedure can be greatly improved because I've made it up with what I used to do lately. Maybe we can sort out a better result for the future.