true, 'strategy' => 'async', ) ); } /** * The loader reads the site key from its own data-site attribute. * * @param string $tag Script tag. * @param string $handle Script handle. * @return string */ public static function tag( $tag, $handle ) { if ( self::HANDLE !== $handle ) { return $tag; } $key = FlatRateChat_Service::site_key(); if ( '' === $key || false !== strpos( $tag, 'data-site=' ) ) { return $tag; } $attrs = ' data-site="' . esc_attr( $key ) . '"'; if ( false === strpos( $tag, ' async' ) ) { $attrs .= ' async'; } return str_replace( '