OK, in the JS optimization exclusion field, can you try excluding one of below each line and report back which one breaks things?
* wp-content/themes
* OR wp-content/plugins
* OR wp-includes/js
Thread Starter
sy7k
(@sy7k)
Hi,
I have tried all three options but the website header is not loading properly.
It should look like this
View post on imgur.com
OK, first and foremost, make sure to disable “force JS in head” and probably “also aggregate inline JS” as well.
now with that out of the way can you retry and:
1. when excluding e.g. wp-content/plugins, can you indeed see those being excluded from JS optimization when looking at the HTML source?
2. does the JS error on the console change when excluding, or is it always the same?
3. does unticking “minify excluded CSS/ JS” make a difference when trying those exclusions?
frank
Thread Starter
sy7k
(@sy7k)
Hi,
I have made it work somehow with auto-optimize .
So one more thing I want to understand is that my cache level is at 75 % with 450 MB of Data being cached and the website was working great with all products being cached.
But I have a lot more products to add and the cache % will easily reach 100 % when I will be adding new products, any way to increase the cache limit !!
Also the products that are not cached are loading very slow like it takes 5-6 seconds to load a product but when cached it is of course instantaneous, is the product loading slow because of low server resources and many plugins installed ?
I have 5gb ram 5 CPU core shared wordpress hosting with I/O Usage of 1MB/s
well, Autoptimize normally does not work on a per-page level, but when configured correctly will re-use the autoptimized CSS/ JS on multiple pages, in which case the cache size will stay more under control. what I would advice is disabling “also aggregate inline JS” and (if the previous is not active anyhow) also disabling “also aggregate inline CSS”.
hope this helps,
frank
Thread Starter
sy7k
(@sy7k)
Hi ,
I have done as you said
The website cache is just at 800 kb and around 3 % so that is amazing, all products are loading fast after I load them once or after they are cached.
Only problem I see is sometime my homepage loads slow and sometimes it is instant .
Here is the screenshot of my setting https://imgur.com/a/76ublcL
Only problem I see is sometime my homepage loads slow and sometimes it is instant.
hard to say with certainty, but that sounds like a page cache cache miss .. can you reproduce on a test on webpagetest.org and if so provide me with the test result URL so I can review?
No feedback any more, so I assume this got resolved sy7k ? Feel free to follow up if you still encounter issues!
have a nice day!
frank