This is a list of JS files that show on the waterfall when logged in. What would stop the minification of these when a user is logged in???
accounting.min.js
admin-bar.min.js
core-js.js
fabric.min.js
fontfaceobserver.js
hooks.min.js
hoverintent-js.min.js
jquery-migrate.min.js
jquery.blockUI.min.js
jquery.min.js
jquery.qtip.min.js
jquery.validationEngine-en.js
jquery.validationEngine.js
js.cookie.min.js
ofb-public.js
oimageload.js
oriontio.js
regenerator-runtime.min.js
toolbar.js
vpc-cta-public.js
vpc-defailt-skin.js
vpc-msl-public.js
vpc-public.js
vpc-upload-public.js
woocommerce.min.js
wp-polyfill-inert.min.js
wp-polyfill.min.js
]]>However, seems like Cloudflare will cache the images too. Is there a way to prevent caching the images so that Optimole can serve them while CF serves everything else?
Also, should I minify the CSS and JS with another plugin to make sure CF caches the minified version or the minify options in the CF dashboard will do the same job?
I am setting up a WooCommerce site.
According to this article, JavaScript files should not be minified on a WooCommerce site:
https://woocommerce.com/document/configuring-caching-plugins/
On the other hand, the articles below state that JS minification could be applied to a WooCommerce store, as long as WooCommerce scripts are not minified:
https://wp-rocket.me/wordpress-cache/cache-plugin-for-woocommerce/#section-4
https://www.commercegurus.com/best-woocommerce-caching-plugins/
So my understanding of this is that I need to find the WooCommerce JS-files, and add them to: LiteSpeed > Page Optimization > Tuning > JS Excludes
Have I understood this correctly?
How do I find the WooCommerce scripts to exclude for my site?
Thank you!
]]>I came across a problem with the JS code generated by IAWP. I noticed that when I use the Cache Enabler plugin’s Minify HTML feature (which includes inline scripts), it causes a syntax error in the minimized inline script output by IAWP. I will leave the minification on for now so you can see it on my website.
Before minimizing
<script> (function () {
document.addEventListener("DOMContentLoaded", function (e) {
if (document.hasOwnProperty("visibilityState") && document.visibilityState === "prerender") {
return;
}
if (navigator.webdriver || /bot|crawler|spider|crawling/i.test(navigator.userAgent)) {
return;
}
let referrer_url = null;
if (typeof document.referrer === 'string' && document.referrer.length > 0) {
referrer_url = document.referrer;
}
const params = location.search.slice(1).split('&').reduce((acc, s) => {
const [k, v] = s.split('=')
return Object.assign(acc, {[k]: v})
}, {})
const url = "https://thetasbih.com/wp-json/iawp/search"
const body = {
referrer_url,
utm_source: params.utm_source,
utm_medium: params.utm_medium,
utm_campaign: params.utm_campaign,
utm_term: params.utm_term,
utm_content: params.utm_content,
...{"payload":{"resource":"singular","singular_id":"2","page":1},"signature":"a648366db04bebc8ceff9e132045dfd9"} }
const xhr = new XMLHttpRequest()
xhr.open("POST", url, true)
xhr.setRequestHeader("Content-Type", "application/json;charset=UTF-8")
xhr.send(JSON.stringify(body))
})
})(); </script>
After minimizing
<script> (function () { document.addEventListener("DOMContentLoaded", function (e) { if (document.hasOwnProperty("visibilityState") && document.visibilityState === "prerender") { return; } if (navigator.webdriver || /bot|crawler|spider|crawling/i.test(navigator.userAgent)) { return; } let referrer_url = null; if (typeof document.referrer === 'string' && document.referrer.length > 0) { referrer_url = document.referrer; } const params = location.search.slice(1).split('&').reduce((acc, s) => { const [k, v] = s.split('=') return Object.assign(acc, {[k]: v}) }, {}) const url = "https://thetasbih.com/wp-json/iawp/search" const body = { referrer_url, utm_source: params.utm_source, utm_medium: params.utm_medium, utm_campaign: params.utm_campaign, utm_term: params.utm_term, utm_content: params.utm_content, ...{"payload":{"resource":"singular","singular_id":"2","page":1},"signature":"a648366db04bebc8ceff9e132045dfd9"} } const xhr = new XMLHttpRequest() xhr.open("POST", url, true) xhr.setRequestHeader("Content-Type", "application/json;charset=UTF-8") xhr.send(JSON.stringify(body)) }) })(); </script>
]]>A plugin is suggesting a file [https://ibb.co/W227TcH] to be minified. Is there a possibility to minify a specific file.
Kindly guide.
]]>I’m currently using the News base theme and images not showing when i’m logged out. Before i was using a premium theme along with Elementor and all was fine. Also the plugin works fine with other themes.
I got the images showing up again by disabling JS Minify, JS Combine and JS Combine External and Inline.
Can you please take a look?
Thanks in advance.
]]>I have Smush for image compression and WP-Optimize for image and general optimisation. Contemplating getting SG Optimiser (I have just setup hosting with SiteGround), and wondering if the SG Optimiser plugin will enable me to remove those other plugins?
Kind regards,
John
]]>