| @@ 64-68 (lines=5) @@ | ||
| 61 | } |
|
| 62 | ||
| 63 | // only header? |
|
| 64 | if ( apply_filters( 'autoptimize_filter_js_justhead', $options['justhead'] ) ) { |
|
| 65 | $content = explode( '</head>', $this->content, 2 ); |
|
| 66 | $this->content = $content[0] . '</head>'; |
|
| 67 | $this->restofcontent = $content[1]; |
|
| 68 | } |
|
| 69 | ||
| 70 | // Determine whether we're doing JS-files aggregation or not. |
|
| 71 | if ( ! $options['aggregate'] ) { |
|
| @@ 74-78 (lines=5) @@ | ||
| 71 | $this->inject_min_late = apply_filters( 'autoptimize_filter_css_inject_min_late', true ); |
|
| 72 | ||
| 73 | // Remove everything that's not the header. |
|
| 74 | if ( apply_filters( 'autoptimize_filter_css_justhead', $options['justhead'] ) ) { |
|
| 75 | $content = explode( '</head>', $this->content, 2 ); |
|
| 76 | $this->content = $content[0] . '</head>'; |
|
| 77 | $this->restofcontent = $content[1]; |
|
| 78 | } |
|
| 79 | ||
| 80 | // Determine whether we're doing CSS-files aggregation or not. |
|
| 81 | if ( isset( $options['aggregate'] ) && ! $options['aggregate'] ) { |
|