cluster666 on "[Plugin: Autoptimize] custom layout HTML"
thank you, looks very good :) if I disable the HTML from backend I have to use that in /theme/functions.php right? ## edit ## the minified inline css do not line break at the end...
View ArticleFrank Goossens on "[Plugin: Autoptimize] custom layout HTML"
in functions.php is OK, but if not in a child theme you'll loose these changes when a theme update gets applied. regarding the line break after </style>; you could do a str_replace on $out,...
View Articlecluster666 on "[Plugin: Autoptimize] custom layout HTML"
thanks Frank, it seems to work - except the </script> part for $out3, did not add the break ... I'm doing something wrong here?...
View ArticleFrank Goossens on "[Plugin: Autoptimize] custom layout HTML"
well, this line $output = str_replace($out0, $out1, $out2, $out3); doesn't really make sense. remove it and do return $out3 instead of return $output frank
View ArticleFrank Goossens on "[Plugin: Autoptimize] PHP errors"
OK, for the base64data notice, on line 270 replace; if($icheck->check()) { // we have the base64 image in cache $headAndData=$icheck->retrieve(); } else { with if($icheck->check()) { // we...
View Articlecluster666 on "[Plugin: Autoptimize] custom layout HTML"
thank you, it looks much better now :) a last question, can Autoptimize move java script snippets added by a plugin into the footer too? fex: <script type="application/ld+json"> </script>...
View ArticleFrank Goossens on "[Plugin: Autoptimize] custom layout HTML"
ld+json is intentionally left in place. is it not real javascript and will not impact performance (and aggregating it broke some stuff badly). text/javascript-snippets will by default be aggregated...
View Articlecluster666 on "[Plugin: Autoptimize] custom layout HTML"
OK, I understand, but there is one script left in header which is not moved into the footer: <script type="text/javascript"> var bhittani_plugin_kksr_js =...
View ArticleFrank Goossens on "[Plugin: Autoptimize] custom layout HTML"
ah, I see; scripts that have "nonce" in them (or post_id, for example) are excluded by default, as those will explode your cache (as the nonce can change with every page load). frank
View Articlecluster666 on "[Plugin: Autoptimize] custom layout HTML"
ugh, currently they are placed between my hreflang tags ... is there any way to move them in last order before </head> ? Regards, Ralph
View ArticleFrank Goossens on "[Plugin: Autoptimize] custom layout HTML"
afraid not (yet, anyway). frank
View Articlecluster666 on "[Plugin: Autoptimize] custom layout HTML"
hahah not yet, but I guess this is not related to autopmimize so I opened a new thread in our plugin section :) https://wordpress.org/support/topic/how-to-move-wp_enqueue_scripts-in-front-of
View Articlecluster666 on "[Plugin: Autoptimize] custom layout HTML"
hmm, autopmimize sets inline css infront of <title> ... would it be possible to set this infront of </head> ? then it could work w/ the nonce script order in head Regards, Ralph
View ArticleFrank Goossens on "[Plugin: Autoptimize] custom layout HTML"
yeah, there's a filter in the API for that as well :-) you can check out autoptimize_helper.php_example for the code. frank
View Articledimitrov.adrian on "[Plugin: Autoptimize] PHP errors"
Thanks for the support. Patches seems to work fine, or at least i have no warnings last few hours. About the second patch, are you sure that there will be no case that ';base64,' will be not in the...
View ArticleFrank Goossens on "[Plugin: Autoptimize] PHP errors"
About the second patch, are you sure that there will be no case that ';base64,' will be not in the $icheck->retrieve(); yep; a couple of lines later (if $icheck->check is false), you can see...
View ArticleLightRunner on "[Plugin: Autoptimize] Possible to defer webfonts?"
Absolutely love the plugin. PageSpeed is saying "Your page has 1 blocking CSS resources. This causes a delay in rendering your page." and only shows the font for me as well:...
View Articlecluster666 on "[Plugin: Autoptimize] custom layout HTML"
Hello Frank, I was able to move the javascript below wp_head(), by changing the plugin add_action from wp_enqueue_scripts to wp_head so the nonce function is still working ... I tried to place the...
View ArticleFrank Goossens on "[Plugin: Autoptimize] custom layout HTML"
ah, but you need to hook that function to the "autoptimize_filter_css_replacetag"-filter for it to work off course; add_filter('autoptimize_filter_css_replacetag','my_ao_override_css_replacetag',10,1);...
View Articlecluster666 on "[Plugin: Autoptimize] custom layout HTML"
ugh, you're right ;-) thank you for the great support !!! Ralph
View Article