public function enqueuePakoLibs(string $which = 'base')
    {
        if (($data = $this->didEnqueueLibs(__METHOD__))) {
            return $data; // Did this already.
        } // We only need to enqueue once.

        if ($which === 'base') {
            $data = [
                'scripts' => [
                    'pako' => [
                        'version' => '1.0.4',
                        'url'     => '//cdnjs.cloudflare.com/ajax/libs/pako/%1$s/pako.min.js',
                    ],
                ],
            ];
        } elseif ($which === 'deflate') {
            $data = [
                'scripts' => [
                    'pako-deflate' => [
                        'version' => '1.0.4',
                        'url'     => '//cdnjs.cloudflare.com/ajax/libs/pako/%1$s/pako_deflate.min.js',
                    ],
                ],
            ];
        } elseif ($which === 'inflate') {
            $data = [
                'scripts' => [
                    'pako-inflate' => [
                        'version' => '1.0.4',
                        'url'     => '//cdnjs.cloudflare.com/ajax/libs/pako/%1$s/pako_inflate.min.js',
                    ],
                ],
            ];
        }
        return $this->enqueueLibs(__METHOD__, $data);
    }
public function enqueuePakoLibs(string $which = 'base')
    {
        if (($data = $this->didEnqueueLibs(__METHOD__))) {
            return $data; // Did this already.
        } // We only need to enqueue once.

        if ($which === 'base') {
            $data = [
                'scripts' => [
                    'pako' => [
                        'version' => '1.0.4',
                        'url'     => '//cdnjs.cloudflare.com/ajax/libs/pako/%1$s/pako.min.js',
                    ],
                ],
            ];
        } elseif ($which === 'deflate') {
            $data = [
                'scripts' => [
                    'pako-deflate' => [
                        'version' => '1.0.4',
                        'url'     => '//cdnjs.cloudflare.com/ajax/libs/pako/%1$s/pako_deflate.min.js',
                    ],
                ],
            ];
        } elseif ($which === 'inflate') {
            $data = [
                'scripts' => [
                    'pako-inflate' => [
                        'version' => '1.0.4',
                        'url'     => '//cdnjs.cloudflare.com/ajax/libs/pako/%1$s/pako_inflate.min.js',
                    ],
                ],
            ];
        }
        return $this->enqueueLibs(__METHOD__, $data);
    }
public function enqueuePakoLibs ( string $ which = 'base' ) { if ( ( $ data = $ this -> didEnqueueLibs ( __METHOD__ ) ) ) { return $ data ; // Did this already. } // We only need to enqueue once. if ( $ which === 'base' ) { $ data = [ 'scripts' => [ 'pako' => [ 'version' => '1.0.4' , 'url' => '//cdnjs.cloudflare.com/ajax/libs/pako/%1$s/pako.min.js' , ] , ] , ] ; } elseif ( $ which === 'deflate' ) { $ data = [ 'scripts' => [ 'pako-deflate' => [ 'version' => '1.0.4' , 'url' => '//cdnjs.cloudflare.com/ajax/libs/pako/%1$s/pako_deflate.min.js' , ] , ] , ] ; } elseif ( $ which === 'inflate' ) { $ data = [ 'scripts' => [ 'pako-inflate' => [ 'version' => '1.0.4' , 'url' => '//cdnjs.cloudflare.com/ajax/libs/pako/%1$s/pako_inflate.min.js' , ] , ] , ] ; } return $ this -> enqueueLibs ( __METHOD__ , $ data ) ; }
Enqueue Pako libs.

@since 170128.18158 Pako libs.

@param string $which Which library?

@return array Library details.
Enqueue Pako libs .