I have the exact same problem.. Cache gets full and then my site takes forever to load or doesnt load certain images at all. Once cleared, site loads normal again. Any help would be greatly appreciated.
disable the “aggregate inline JS”-option and your cache-size should be fine (you might have to exclude js/jquery/jquery.js from JS optimization as well).
(reason; one or more plugins injects inline JS which changes regularly, if you’re aggregating inline JS this results in AO not being able to use optimized code from cache, creating a file one)
frank
Dear Frank!
First of all thank you very much for your assistance!
I have disabled “aggregate inline JS”, everything works fine. The loading is very fast now, I get very good scores on all speed test.
Although there is one plugin which does not work properly with “aggregate inline JS” disabled.
The plugin is the “Advanced post slider”, which has the solar PV system references on the homepage.
I think the “Advanced post slider” plugin’s javascripts does not work.
Could you please check it? What should I do with this to keep this high scores?
Thank you very much!
Best regards,
Antal
you could try excluding advanced post slider’s JS, by adding
advanced-post-slider/js/ to the comma separated JS exclusion list (as the JS relies on jquery, you will most definitively need to exclude js/jquery/jquery.js as well).
frank
Hello Frank!
I have added all the js files of the advance-post-slider and the js/jquery/jquery.js also, to the exclude list, but sadly the advance-post-slider still not working.
Any another idea?
Thank you in advance!
Antal
Hmm … any JS error on the browser console?
Dear Frank!
Thank you very much for helping!
2 errors and one warning…
One erro is becasue captcha.
And one is this:
Uncaught ReferenceError: jQuery is not defined.
The warning is:
Synchronous XMLHttpRequest…
Also this is noted:
JQMIGRATE: Migrate is installed, version 1.4.1
I have no idea what is the problem!
Antal
well,
jQuery is not defined.
seems to indicate there’s something wrong with the exclusion. could you copy/paste your entire js-exclusion text here?
s_sid,smowtion_size,sc_project,WAU_,wau_add,comment-form-quicktags,edToolbar,ch_client,seal.js,advps.frnt.script.js,advps.script.js,js/jquery/jquery.js,advanced-post-slider/js/
looks correct. afraid I’m going to have to see the problem to be able to troubleshoot further. do you happen to have a non-prod site where you can live with the error being visible?
Not really!
But I will leave it like this until you have the time to check it.
It is not that bad for user experience!
Thank you very much for looking into it!
found it; you have something (a plugin, maybe async js) setting the defer-flag on jquery;
<script type='text/javascript' defer src='https://www.napelemek-napkollektorok.hu/wp-includes/js/jquery/jquery.js'></script>
which means that jquery is loaded late, even if it’s excluded from AO. find a way not to defer jquery and you’ll be good to go!
Hi Frank!
I have disabled that defer flag, now the website works perfectly, but now another thing is the problem…
Now, my awesome scores are gone. My loading time is much slower.
Is it possible that I keep the defer flags and it will not brake that plugin.
What is your advice, what shall I do!
Thank you anyway for the awesome help!
Is it possible that I keep the defer flags and it will not brake that plugin.
no, you cannot defer jquery if another plugin needs it immediately.
but …
you could turn things around entirely and keep on aggregating inline JS and not excluding jquery, but instead excluding the trive-leads inline JS from optimization (which you identified as a possible culprit in your original post).
if you’re right about TL being the reason and if you’re lucky, simply excluding TL_Const might do the trick 🙂
frank
Hi @all,
I found a solution for users who use the Thrive Leads plugin.
You´ve to exclude the following:
- js/jquery/jquery.js
- plugins/thrive-leads/js/frontend.min.js
Also deactivate the inline-JS function.
Then it works well without growing up your cache size.
For any question contact me over my website https://www.agile-master.de/
Regards
Sven