-
AuthorPosts
-
July 9, 2022 at 4:44 am #1357755
Hi!
There are also plugins dedicated to file compression or minification such as Autoptimize, WP Super Minify, Fast Velocity Minify, BWP Minify etc. You don’t need to install another cache plugin if you already activated one. We do recommend the Autoptimize plugin because it works correctly with the Enfold > Performance > Disable Template Builder Elements option.
Unfortunately, it would be difficult for us to identify the issue with the ad scripts because we are not familiar with its code. You may need to contact the script authors for additional assistance.
Thank you for your patience.
Regards,
IsmaelJuly 9, 2022 at 3:03 pm #1357790Very helpful! Thank you.
August 31, 2022 at 8:57 pm #1363405Unfortunately, the script did not work. Well, it did work. However it isn’t loading at the correct time. The image first appears at the top, then after the rest of the page loads, it jumps to the new position. We think this might be caused by Ezoic, the ad network but we aren’t sure if it is or how to correct it. For the present, we removed the script.
Any other suggestions?
September 1, 2022 at 2:47 am #1363421Hi,
Sorry, but unfortunately this seems to be clearly caused by your ad network Ezoic, your staging site without Ezoic did not have the error (July 8), it is out of the scope of our support to correct a conflict caused by a third party plugin or script, typically with such conflicts we would recommend not using the conflicting plugin or script, or using a different one that doesn’t cause a conflict, but with this being your revenue source I can understand you may not be able to do this. In this case you can try following Ismael’s advice and not use the theme merging and use a third party caching plugin instead.Best regards,
MikeSeptember 1, 2022 at 2:55 am #1363424Oh my gosh, I’m so sorry. I actually posted this on the wrong forum discussion.
September 1, 2022 at 3:13 am #1363430Hi,
Shall we close this thread then? This thread is quite long and confusing now.Best regards,
MikeSeptember 1, 2022 at 2:06 pm #1363481besides that – you can exclude specific css or js files from being merged.
f.e. on an installation i need to exclude the recaptcha script from beeing merged.
function avia_exclude_files_from_compression($excluded_files){ $exclude_js = array( 'avia_google_recaptcha_front_script'); $excluded_files['js'] = array_merge($excluded_files['js'], $exclude_js); return $excluded_files; } add_filter('avf_exclude_assets', 'avia_exclude_files_from_compression', 10, 1);
maybe this will work too:
function my_avf_exclude_assets( array $exclude_files ){ /**Add CSS to exclude*/ $exclude_files['css'][] = 'my-css-file'; // use the enqueue name /*** Add js to exclude*/ $exclude_files['js'][] = 'my-js-file'; // use the enqueue name return $exclude_files; } add_filter( 'avf_exclude_assets', 'my_avf_exclude_assets', 10, 1 );
September 1, 2022 at 3:22 pm #1363490Yes, please.
September 2, 2022 at 12:05 am #1363553Hi,
Thank you, we will close this issue since it is caused by the Ezoic script.
If you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Enfold CSS/JS merging function still not working properly’ is closed to new replies.