| @@ 99-101 (lines=3) @@ | ||
| 96 | public function extra_async_js( $in ) | |
| 97 |     { | |
| 98 | $exclusions = array(); | |
| 99 |         if ( ! empty( $in ) ) { | |
| 100 | $exclusions = array_fill_keys( array_filter( array_map( 'trim', explode( ',', $in ) ) ), '' ); | |
| 101 | } | |
| 102 | ||
| 103 | $settings = $this->options['autoptimize_extra_text_field_3']; | |
| 104 | $async = array_fill_keys( array_filter( array_map( 'trim', explode( ',', $settings ) ) ), '' ); | |
| @@ 53-55 (lines=3) @@ | ||
| 50 | ||
| 51 | // only optimize known good JS? | |
| 52 | $whitelistJS = apply_filters( 'autoptimize_filter_js_whitelist', '', $this->content ); | |
| 53 |         if ( ! empty( $whitelistJS ) ) { | |
| 54 | $this->whitelist = array_filter( array_map( 'trim', explode( ',', $whitelistJS ) ) ); | |
| 55 | } | |
| 56 | ||
| 57 | // is there JS we should simply remove | |
| 58 | $removableJS = apply_filters( 'autoptimize_filter_js_removables', '', $this->content ); | |
| @@ 59-61 (lines=3) @@ | ||
| 56 | ||
| 57 | // is there JS we should simply remove | |
| 58 | $removableJS = apply_filters( 'autoptimize_filter_js_removables', '', $this->content ); | |
| 59 |         if (!empty($removableJS)) { | |
| 60 | $this->jsremovables = array_filter( array_map( 'trim', explode( ',', $removableJS ) ) ); | |
| 61 | } | |
| 62 | ||
| 63 | // only header? | |
| 64 |         if ( apply_filters( 'autoptimize_filter_js_justhead', $options['justhead'] ) ) { | |
| @@ 59-61 (lines=3) @@ | ||
| 56 | } | |
| 57 | ||
| 58 | $whitelistCSS = apply_filters( 'autoptimize_filter_css_whitelist', '', $this->content ); | |
| 59 |         if ( ! empty( $whitelistCSS ) ) { | |
| 60 | $this->whitelist = array_filter( array_map( 'trim', explode( ',', $whitelistCSS ) ) ); | |
| 61 | } | |
| 62 | ||
| 63 | $removableCSS = apply_filters( 'autoptimize_filter_css_removables', '' ); | |
| 64 |         if ( ! empty( $removableCSS ) ) { | |
| @@ 64-66 (lines=3) @@ | ||
| 61 | } | |
| 62 | ||
| 63 | $removableCSS = apply_filters( 'autoptimize_filter_css_removables', '' ); | |
| 64 |         if ( ! empty( $removableCSS ) ) { | |
| 65 | $this->cssremovables = array_filter( array_map( 'trim', explode( ',', $removableCSS ) ) ); | |
| 66 | } | |
| 67 | ||
| 68 | $this->cssinlinesize = apply_filters( 'autoptimize_filter_css_inlinesize', 256 ); | |
| 69 | ||