-
-
https://monosnap.com/file/3Bq8hWkd62v3X00tV519oY8Ljrh5TQ
Also wondering why there are two sets of CSS output in header? Seems inefficient, there should be at the most just one chunk for the options.
-
Hello,
This is dynamic css code generated from the theme settings. It is very important and if you try to delete it, it will break the theme.
The array is not necessary generated from theme scripts. It could be from one of your installed plugins. Have you tried to disable them all and check? However this is not really an issue.
If you want to make your site perform faster, You can install a cache plugin or minify some of the css files. Remove plugins you do not use and if there are elements you do not use , then you could delete their specific css files (example: if you do not use the counters, then you may remove odometer.css file).Best regards!
-
Thanks Mihaila.
I am not using counters (among other elements) but when I try the following in my child theme’s functions.php file:
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_dequeue_script('odometer.min'); wp_deregister_script('odometer.min'); }
I get the following console errors, and slideshows and tabs etc do not load:
isotope.js?ver=1:11 Uncaught TypeError: Cannot read property 'opera' of undefined(anonymous function) @ isotope.js?ver=1:11(anonymous function) @ isotope.js?ver=1:11 jquery.fancybox.js?ver=1:139 Uncaught TypeError: Cannot read property 'msie' of undefined(anonymous function) @ jquery.fancybox.js?ver=1:139(anonymous function) @ jquery.fancybox.js?ver=1:1985 jquery.fancybox-media.js?ver=1:88 Uncaught TypeError: Cannot set property 'media' of undefined(anonymous function) @ jquery.fancybox-media.js?ver=1:88(anonymous function) @ jquery.fancybox-media.js?ver=1:196 jquery.min.js?ver=3.0.0:4 Uncaught TypeError: a.indexOf is not a function
Please advise the correct technique.
-
-
-
Hello,
You have added the right function, but I can’t see you site so I can check out the errors.
Have you removed other scripts too?
Can you show us your site credentials? You want to remove only that script/style?
Regards!
-
You must be logged in to reply to this topic.