ferchu212
Forum Replies Created
-
Forum: Plugins
In reply to: [Autoptimize] Page specific JS excludes, or plugin-specific expressions?Thanks, Frank 🙂
Forum: Plugins
In reply to: [Autoptimize] Page specific JS excludes, or plugin-specific expressions?Hi Frank
I tried the code but https://www.spanishgurus.com/ does not load the Essential Grids. I’ve tried flushing the caches and reloading several times. Screenshots in case you need them: https://www.dropbox.com/sh/1sdqqqmbsknvjd2/AAA4aXHYM_YenNfkx233hgE5a?dl=0
I hope the is_home() doesn’t get confused with the https.
Does any other trick come to your mind?
Cheers
Forum: Plugins
In reply to: [Autoptimize] Page specific JS excludes, or plugin-specific expressions?Hi Frank,
I see 🙂
Now here is the problem. I’m using Essential Grid on the following pages:
1- https://www.spanishgurus.com/
2- https://www.spanishgurus.com/teachers
3- https://www.spanishgurus.com/how-it-works/levelsThis code covers 2- and 3-
if ((strpos($_SERVER[‘REQUEST_URI’],’teachers’)!==false) || (strpos($_SERVER[‘REQUEST_URI’],’levels’)!==false)){How would I add 1-? Also, 1- is a long landing page, I guess that if I exclude jquery.js for this page, I’ll lose a lot of the Autoptimize JS improvements, right?
Thanks in advance
Forum: Plugins
In reply to: [Autoptimize] Page specific JS excludes, or plugin-specific expressions?Hi guys,
I’m facing similar problem to Alexa’s but I cannot get it fixed.
I’m using latest version of Autoptimize.
Optimize JavaScript Code? OK
Force JavaScript in <head>? OFF
Also aggregate inline JS? ON
Exclude scripts from Autoptimize: s_sid,smowtion_size,sc_project,WAU_,wau_add,comment-form-quicktags,edToolbar,ch_client,seal.js
Add try-catch wrapping? OKI also added the snipet code: Saved and active for the whole site
add_filter(‘autoptimize_filter_js_exclude’,’ess_grid_exclude’,10,1);
function ess_grid_exclude($exclude) {
if (strpos($_SERVER[‘REQUEST_URI’],’anew/gear’)!==false) {
return $exclude.”,jquery.js”;
} else {
return $exclude;
}
}However, Essential Grids don’t load. F.i.: https://www.spanishgurus.com/teachers/
Any advise?
Thanks in advance
Fernando