@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | $origTag = $tag; |
127 | 127 | foreach ($excludeJS as $exclTag => $exclFlags) { |
128 | 128 | if ( strpos($origTag,$exclTag)!==false && in_array($exclFlags,array("async","defer")) ) { |
129 | - $tag = str_replace('<script ','<script '.$exclFlags.' ',$tag); |
|
129 | + $tag = str_replace('<script ','<script '.$exclFlags.' ',$tag); |
|
130 | 130 | } |
131 | 131 | } |
132 | 132 | } |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | |
243 | 243 | //$this->jscode has all the uncompressed code now. |
244 | 244 | if ($this->alreadyminified!==true) { |
245 | - if (class_exists('JSMin') && apply_filters( 'autoptimize_js_do_minify' , true)) { |
|
245 | + if (class_exists('JSMin') && apply_filters( 'autoptimize_js_do_minify' , true)) { |
|
246 | 246 | if (@is_callable(array("JSMin","minify"))) { |
247 | 247 | $tmp_jscode = trim(JSMin::minify($this->jscode)); |
248 | 248 | if (!empty($tmp_jscode)) { |
@@ -256,10 +256,10 @@ discard block |
||
256 | 256 | $this->jscode = $this->inject_minified($this->jscode); |
257 | 257 | return false; |
258 | 258 | } |
259 | - } else { |
|
260 | - $this->jscode = $this->inject_minified($this->jscode); |
|
259 | + } else { |
|
260 | + $this->jscode = $this->inject_minified($this->jscode); |
|
261 | 261 | return false; |
262 | - } |
|
262 | + } |
|
263 | 263 | } |
264 | 264 | return true; |
265 | 265 | } |