is_delayed_strategy example

if ( isset( $this->args[ $handle ] ) ) {
            $ver = $ver ? $ver . '&' . $this->args[ $handle ] : $this->args[ $handle ];
        }

        $src               = $obj->src;
        $strategy          = $this->get_eligible_loading_strategy( $handle );
        $intended_strategy = (string) $this->get_data( $handle, 'strategy' );
        $cond_before       = '';
        $cond_after        = '';
        $conditional       = isset( $obj->extra['conditional'] ) ? $obj->extra['conditional'] : '';

        if ( ! $this->is_delayed_strategy( $intended_strategy ) ) {
            $intended_strategy = '';
        }

        if ( $conditional ) {
            $cond_before = "<!--[if {$conditional}]>\n";
            $cond_after  = "<![endif]-->\n";
        }

        $before_script = $this->get_inline_script_tag( $handle, 'before' );
        $after_script  = $this->get_inline_script_tag( $handle, 'after' );

        
Home | Imprint | This part of the site doesn't use cookies.