Afraid that’s quite a mystery to me as well Andrew: JavaScript execution time depends on the amount of JS that your theme/ plugins (and WordPress itself) add to the page and this is unlikely to be impacted by the age of the page in the page cache .. If you can share your site’s URL I’ll take a look to see if anything stands out?
frank
Hi Frank,
Really appreciate that.
Amazing support service as always.
Details of our home page below:
https://paste.pics/741e31e5f9a01a4b335cd6392c155da0
Details of one of our product pages below:
https://paste.pics/72b70d58d0a1bc127485867b7f62834f
Kind Regards,
Andrew
And is the problem with the dropping performance (well, according to GPSI) with the homepage, the product pages or both Andrew?
For what it’s worth; I see GPSI complaining about what turns out to be /wp-content/plugins/wp-e-commerce/wpsc-core/js/wp-e-commerce.js, maybe check with the developers of that plugin?
Hi Frank,
Thank you for your reply.
It seems to be all the pages.
With this plugin, along Async Javascript we have managed to greatly reduce the following metrics:
First Contentful Paint
Largest Contentful Paint
We have also seen an improvement in the cumulative layout shift as well.
Scores for mobile are late 80’s / early 90’s, and mid to late 90’s on desktop.
These scores soon drop into the early 60’s for mobile, and early 70’s for desktop, and as soon as we clear the cache using comet cache, the scores go back up again, which is really strange.
Once the scores drop, if we use ?ao_noptimize=1 at the end of the url we see a score of mid 60’s for mobile, and late 70’s for desktop, with a quicker time to interactive score, but the First Contentful Paint and Largest Contentful Paint scores greatly increase and get worse, along with the cumulative layout shift.
Kind Regards,
Andrew
Hi Frank,
Thanks for your help.
I’ve added the following to the exclusion list, to see if it makes a difference:
/wp-content/plugins/wp-e-commerce/wpsc-core/js/wp-e-commerce.js
Kind Regards,
Andrew
Hi Frank,
Just a courtesy message to let you know that we have removed the
/wp-content/plugins/wp-e-commerce/wpsc-core/js/wp-e-commerce.js
from the exclusions, as this made it worse.
Now ticked Also aggregate inline JS? and this has made a huge difference.
Page scores are high each time with this enabled.
Was a little worried about the cache size growing too much, but the cache has only gone up to 22MB, and has stopped at 22MB.
Will monitor this, and see how things go, but so far, so good.
Thanks again for all your help!
Kind Regards,
Andrew
-
This reply was modified 5 years, 2 months ago by
Andrew1977.