Hello @mohammedays
Thank you for reaching out and I am happy to assist you with this.
Just to clarify, these are minified files, not folders, and yes once the JS is minified, depending on the location of the file, the files are minified and combined into fewer files that are being stored in /wp-content/cache/minify/ folder.
What you can do is try and change the embed method for the minified files, using defer in the Performance>Minify>JS settings (try before body first and/or both)
Before </head>
Non-blocking using “defer”
After <body>
Non-blocking using “defer”
The alternative is to exclude this file from being minified in Performance>Minify>Advanced>Never Minify following JS files, save all settings and purge the cache. After this, you can manage this file separately as it will not be minified.
Thanks!
I just used defer before body images did not show then used defer after body and they did now show also. So, I think the alternative is the way to go.
one more thing, I do not publish new posts very often and I do not update posts very often. So, is it better for performance to keep cache for a longer time? if so please let me know the setting to keep the cache stays longer, I do purge caches manually sometimes.
Thank you
Hello @mohammedays
Thank you for your feedback.
By default, W3 Total Cache does not purge the cache until the content is changed as per the default settings in Performance>Page Cache>Purge policy.
SO it’s recommended to keep the cache longer if you are not publishing regularly and purge the cache only when you update/ post a new article.
Thanks!
how about these settings?
performance – minify – advanced: Update external files every: and Garbage collection interval:
Hello @mohammedays
Those should be left as they are on default. If you are not making any changes, the files will not be updated and the garbage collection interval will not fire if the Minify cache is not purged.
Thanks!
is it possible to delay minified files? or should I exclude them and delay them without minifying them? thank you