| @@ 221-225 (lines=5) @@ | ||
| 218 | } |
|
| 219 | ||
| 220 | // only header? |
|
| 221 | if ( apply_filters( 'autoptimize_filter_js_justhead', $options['justhead'] ) ) { |
|
| 222 | $content = explode( '</head>', $this->content, 2 ); |
|
| 223 | $this->content = $content[0] . '</head>'; |
|
| 224 | $this->restofcontent = $content[1]; |
|
| 225 | } |
|
| 226 | ||
| 227 | // Determine whether we're doing JS-files aggregation or not. |
|
| 228 | if ( ! $options['aggregate'] ) { |
|
| @@ 187-191 (lines=5) @@ | ||
| 184 | $this->inject_min_late = apply_filters( 'autoptimize_filter_css_inject_min_late', true ); |
|
| 185 | ||
| 186 | // Remove everything that's not the header. |
|
| 187 | if ( apply_filters( 'autoptimize_filter_css_justhead', $options['justhead'] ) ) { |
|
| 188 | $content = explode( '</head>', $this->content, 2 ); |
|
| 189 | $this->content = $content[0] . '</head>'; |
|
| 190 | $this->restofcontent = $content[1]; |
|
| 191 | } |
|
| 192 | ||
| 193 | // Determine whether we're doing CSS-files aggregation or not. |
|
| 194 | if ( isset( $options['aggregate'] ) && ! $options['aggregate'] ) { |
|