Can you try adding preloader, themes/oceanwp to the comma-separated JS exclusion list?
Can you write me what command exactly should i add there?
Im sorry , im just learning(
well, on the main Autoptimize settings page, under the “JavaScript optimization” header you have “Exclude scripts from Autoptimize:”, in that field add , preloader, themes/oceanwp ?
done, but still doesn’t work – jQuery(window).load(function(){jQuery(‘#wptime-plugin-preloader’).delay(250).fadeOut(“slow”);setTimeout(wptime_plugin_remove_preloader,2000);function wptime_plugin_remove_preloader(){jQuery(‘#wptime-plugin-preloader’).remove();}});
What i noticet is that on woocommerce pages (categories and single product) everything is working perfectly Menu and Preload plugin , but on non-woocommerce it brakes (
OK, what JS error do you get on the browser console?
when the Preloader Plugin is Off
autoptimize_4f8e2d9d9d92103e11b51a481e97bac3.js:229 Uncaught SyntaxError: Unexpected end of input
admin-bar.min.js:1 Uncaught TypeError: f.hoverintent is not a function
at HTMLDocument.<anonymous> (admin-bar.min.js:1)
When Preloader Plugin is ON
autoptimize_a497d325c89ad95e0c749910d9b4ce30.js:230 Uncaught SyntaxError: Unexpected end of input
admin-bar.min.js:1 Uncaught TypeError: f.hoverintent is not a function
at HTMLDocument.<anonymous> (admin-bar.min.js:1)
OK can you;
1. untick “try/catch javascript” in Autoptimize
2. clear they WP Fastest Cache page cache
Done:
When untick “try-catch”:
1.Preloader starded to work
2.Mobile site-header still not working
3.Now on WOoCommerce single-product-page photos have disappeared π
Can you disable JS aggregation/ minification/ optimization in WP Fastest Cache markofedus ? Using 2 plugins to optimize JS (or CSS) risk causing unpredictable problems.
Nothing π
The only one thing helps me, is untick- “Merge script files” (the second point in JS Options of AO), after that everything works but speedinsight shows -40 of speed π
Nothing π
well, what JS errors do you see? π
I did the same and for me works fine. just cut js/jquery/jquery.js, than save, delete AO cashe, than paste back in js exclude js/jquery/jquery.js, and again save and delete cashe. Looks like working good.