Support » Plugin: Smart Cookie Kit » Is it compatible with Autoptimize?
Is it compatible with Autoptimize?
As per title: is it compatible with the plugin Autoptimize?
Plugin Author shark986
nah .. 🙂
if anything breaks (and that *can* happen) then some autoptimize (re-)configuration can fix this. there’s more info in the troubleshooting tips and info on exclusions in the AO FAQ.
@shark986; given the more then 600 000 active installs of AO, it might be worth your while to investigate how to make it work either by instructing your users, by changing your code or by using AO’s API to treat your code differently. I’ll be happy to assist if need be 🙂
hope this helps,
frank (ao dev)CAPOcards
To solve this isse just add
/wp-content/plugins/smart-cookie-kit/js/sck.min_2018060101.jsto the JS list of files to exclude in Autoptimize setting.
The only setback would be that I assume the filename changes when Smart Cookie Kit is updated. Perhaps the plugin author @shark986 can change it so the JS and minified JS filenames do not change with an update.
Great info @capocards, thanks for sharing! fyi; you can also exclude with
smart-cookie-kit/js/and the date in the filename would not matter any more 🙂
hope this helps,
frank (ao dev)Plugin Author shark986
I just released an update. You can remove the exclusion from the Autoptimize settings.
@capocards your assumption is correct. The resource name will change every time it will be necessary to make sure that browsers will download that resource when necessary.
@optimizingmatters this is why I said that AO breaks things, if I enable “optimize js” and “aggregate inline scripts” and exclude smart cookie kit script, the result is that the “localized” options of the plugin are inserted AFTER the script inclusion.. And things are broken! So, please, do not come here saying “nah, our plugin has 600 000 active installs – it is a your problem”.
Now I have used the API to exclude necessary resources and completely disable the inline aggregation, but I think this behaviour could be improved.
Thanks for your support.Optimizing Matters
Sorry if my feedback seemed harsh my friend, I was not saying it was your problem but -as proven by your example- that it’s a matter of configuration (e.g. “aggregate inline JS” is off by default). anyway, great job! 🙂
have a nice day! 🙂
Until I did that the Cookie alert would not even show up.
Thanks for this amazing plugin, by the way. I am using it on almost all my websites 🙂
CristinaPlugin Author shark986
could you share with me your Autoptimize version and configuration, please?
Thanks to you, for your feedback 🙂
- The topic ‘Is it compatible with Autoptimize?’ is closed to new replies.