Viewing 9 posts - 31 through 39 (of 39 total)
  • Author
    Posts
  • #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,
    Ismael

    #1357790

    Very helpful! Thank you.

    #1363405

    Unfortunately, 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?

    #1363421

    Hi,
    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,
    Mike

    #1363424

    Oh my gosh, I’m so sorry. I actually posted this on the wrong forum discussion.

    #1363430

    Hi,
    Shall we close this thread then? This thread is quite long and confusing now.

    Best regards,
    Mike

    #1363481

    besides 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 );
    #1363490

    Yes, please.

    #1363553

    Hi,
    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

Viewing 9 posts - 31 through 39 (of 39 total)
  • The topic ‘Enfold CSS/JS merging function still not working properly’ is closed to new replies.