HEX
Server: LiteSpeed
System: Linux server.zepintelhosting.com 4.18.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User: enamadmin (1026)
PHP: 8.2.30
Disabled: exec,system,passthru,shell_exec,proc_open,popen,apache_child_terminate
Upload Files
File: /home/enamadmin/www/wp-content/plugins/jetpack-boost/compatibility/js-concatenate.php
<?php
/**
 * Exclude known scripts that causes problem when concatenated.
 */

namespace Automattic\Jetpack_Boost\Compatibility\JS_Concatenate;

function maybe_do_not_concat( $do_concat, $handle ) {
	$excluded_handles = array(
		// Plugin: `event-tickets`
		'tribe-tickets-block',
		'tribe-tickets-provider',
	);

	if ( in_array( $handle, $excluded_handles, true ) ) {
		return false;
	}

	return $do_concat;
}

add_filter( 'js_do_concat', __NAMESPACE__ . '\maybe_do_not_concat', 10, 2 );