|
@@ 247-258 (lines=12) @@
|
| 244 |
|
<td><label class="cb_label"><input type="checkbox" name="autoptimize_js_forcehead" <?php echo autoptimizeOptionWrapper::get_option( 'autoptimize_js_forcehead' ) ? 'checked="checked" ' : ''; ?>/> |
| 245 |
|
<?php _e( 'Load JavaScript early, this can potentially fix some JS-errors, but makes the JS render blocking.', 'autoptimize' ); ?></label></td> |
| 246 |
|
</tr> |
| 247 |
|
<?php if ( autoptimizeOptionWrapper::get_option( 'autoptimize_js_justhead' ) ) { ?> |
| 248 |
|
<tr valign="top" class="js_sub js_aggregate"> |
| 249 |
|
<th scope="row"> |
| 250 |
|
<?php |
| 251 |
|
_e( 'Look for scripts only in <head>?', 'autoptimize' ); |
| 252 |
|
echo ' <i>' . __( '(deprecated)', 'autoptimize' ) . '</i>'; |
| 253 |
|
?> |
| 254 |
|
</th> |
| 255 |
|
<td><label class="cb_label"><input type="checkbox" name="autoptimize_js_justhead" <?php echo autoptimizeOptionWrapper::get_option( 'autoptimize_js_justhead' ) ? 'checked="checked" ' : ''; ?>/> |
| 256 |
|
<?php _e( 'Mostly useful in combination with previous option when using jQuery-based templates, but might help keeping cache size under control.', 'autoptimize' ); ?></label></td> |
| 257 |
|
</tr> |
| 258 |
|
<?php } ?> |
| 259 |
|
<tr valign="top" class="js_sub"> |
| 260 |
|
<th scope="row"><?php _e( 'Exclude scripts from Autoptimize:', 'autoptimize' ); ?></th> |
| 261 |
|
<td><label><input type="text" style="width:100%;" name="autoptimize_js_exclude" value="<?php echo esc_attr( autoptimizeOptionWrapper::get_option( 'autoptimize_js_exclude', 'wp-includes/js/dist/, wp-includes/js/tinymce/, js/jquery/jquery.js, js/jquery/jquery.min.js' ) ); ?>"/><br /> |
|
@@ 297-308 (lines=12) @@
|
| 294 |
|
<td><label class="cb_label"><input type="checkbox" name="autoptimize_css_datauris" <?php echo autoptimizeOptionWrapper::get_option( 'autoptimize_css_datauris' ) ? 'checked="checked" ' : ''; ?>/> |
| 295 |
|
<?php _e( 'Enable this to include small background-images in the CSS itself instead of as separate downloads.', 'autoptimize' ); ?></label></td> |
| 296 |
|
</tr> |
| 297 |
|
<?php if ( autoptimizeOptionWrapper::get_option( 'autoptimize_css_justhead' ) ) { ?> |
| 298 |
|
<tr valign="top" class="css_sub css_aggregate"> |
| 299 |
|
<th scope="row"> |
| 300 |
|
<?php |
| 301 |
|
_e( 'Look for styles only in <head>?', 'autoptimize' ); |
| 302 |
|
echo ' <i>' . __( '(deprecated)', 'autoptimize' ) . '</i>'; |
| 303 |
|
?> |
| 304 |
|
</th> |
| 305 |
|
<td><label class="cb_label"><input type="checkbox" name="autoptimize_css_justhead" <?php echo autoptimizeOptionWrapper::get_option( 'autoptimize_css_justhead' ) ? 'checked="checked" ' : ''; ?>/> |
| 306 |
|
<?php _e( 'Don\'t autoptimize CSS outside the head-section. If the cache gets big, you might want to enable this.', 'autoptimize' ); ?></label></td> |
| 307 |
|
</tr> |
| 308 |
|
<?php } ?> |
| 309 |
|
<tr valign="top" class="css_sub"> |
| 310 |
|
<th scope="row"><?php _e( 'Inline and Defer CSS?', 'autoptimize' ); ?></th> |
| 311 |
|
<td><label class="cb_label"><input type="checkbox" name="autoptimize_css_defer" id="autoptimize_css_defer" <?php echo autoptimizeOptionWrapper::get_option( 'autoptimize_css_defer' ) ? 'checked="checked" ' : ''; ?>/> |