HEX
Server: Apache
System: Linux webm010.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: alloesb (202139)
PHP: 8.3.31
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/a/l/l/alloesb/www/wp-content/plugins/customify/includes/integrations/autoptimize.php
<?php
/**
 * This is logic for integrating with the Autoptimize plugin.
 *
 * @link https://wordpress.org/plugins/autoptimize/
 *
 * @see         https://pixelgrade.com
 * @author      Pixelgrade
 * @since       2.7.1
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

// Prevent moving the webfontloader script.
add_filter( 'autoptimize_filter_js_dontmove', function( $dontmove ) {
	$dontmove[] = 'js/vendor/webfontloader';

	return $dontmove;
}, 10, 1 );

// Exclude the webfontloader script.
add_filter( 'autoptimize_filter_js_exclude', function( $excludeJS ) {
	if ( is_string( $excludeJS ) ) {
		$excludeJS .= ',js/vendor/webfontloader';
	} elseif ( is_array( $excludeJS ) ) {
		$excludeJS[] = 'js/vendor/webfontloader';
	}

	return $excludeJS;
}, 10, 1 );