Skip to content

Commit

Permalink
Removed polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
CrochetFeve0251 committed Jun 28, 2024
1 parent 9503625 commit 17feaf8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Dependencies/RocketLazyload/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,17 +155,12 @@ public function getLazyloadScript( $args = [] ) {
$defaults = [
'base_url' => '',
'version' => '',
'polyfill' => false,
];

$args = wp_parse_args( $args, $defaults );
$min = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
$script = '';

if ( isset( $args['polyfill'] ) && $args['polyfill'] ) {
$script .= '<script crossorigin="anonymous" src="https://polyfill.io/v3/polyfill.min.js?flags=gated&features=default%2CIntersectionObserver%2CIntersectionObserverEntry"></script>';
}

/**
* Filters the script tag for the lazyload script
*
Expand Down

0 comments on commit 17feaf8

Please sign in to comment.