Title: Inline small CSS
Last modified: September 26, 2019

---

# Inline small CSS

 *  [mmsosa](https://wordpress.org/support/users/mmsosa/)
 * (@mmsosa)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/inline-small-css-5/)
 * Hello
 * After installing this plugin and integrating criticalcss the GTMETRIX score of
   my website is slower than before.
 * GTMETRIX: “The following external resources have small response bodies. Inlining
   the response in HTML can reduce blocking of page rendering.
 * [https://—&#8211](https://—&#8211);.com/ should inline the following small resources:
 * [https://—&#8212](https://—&#8212);.com/wp-content/cache/autoptimize/css/autoptimize_29beb9de513515c00a558566516f2bef.
   css”
 * Is there any way to fix this?

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Thread Starter [mmsosa](https://wordpress.org/support/users/mmsosa/)
 * (@mmsosa)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/inline-small-css-5/#post-11972743)
 * My website: [https://easycatalogo.com/](https://easycatalogo.com/)
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/inline-small-css-5/#post-11972941)
 * Well, the real performance impact is minimal (a.o. because the full CSS is loaded
   in a non-render-blocking manner) but if you absolutely need/ want to tackle you
   could set the media-type of `wp-content/themes/gridlove-child/style.css` to `
   all` instead of `screen` to ensure it gets aggregated with the rest of the CSS
   🙂
 * hope this helps,
    frank
 *  Thread Starter [mmsosa](https://wordpress.org/support/users/mmsosa/)
 * (@mmsosa)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/inline-small-css-5/#post-11973157)
 * How can I set media-type to all instead of screen?
 * before install criticalcss
 * > [View post on imgur.com](https://imgur.com/A3itoF8)
 * after install criticalcss
 * > [View post on imgur.com](https://imgur.com/2sN9mu3)
 * How is this possible?
 * I thought the website was going to improve speed
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/inline-small-css-5/#post-11973896)
 * > How can I set media-type to all instead of screen?
 * check with whomever created your child theme; the CSS is enqueued with media-
   type screen (probably in functions.php) if you(r developer) change that into 
   all (or leave it un-specified) it will be aggregated with the rest.
 * > How is this possible? I thought the website was going to improve speed
 * critical CSS specific aim is to (make the CSS not render-blocking and that way)
   improve the start render/ first paint times and only that, check results on the“
   timings” tab in GTmetrix 🙂
 * frank
 *  Thread Starter [mmsosa](https://wordpress.org/support/users/mmsosa/)
 * (@mmsosa)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/inline-small-css-5/#post-11975426)
 * change it
 *     ```
       function gridlove_child_load_scripts() {	
       	wp_register_style('gridlove_child_load_scripts', trailingslashit(get_stylesheet_directory_uri()).'style.css', false, GRIDLOVE_THEME_VERSION, 'screen');
       	wp_enqueue_style('gridlove_child_load_scripts');
       }
       ```
   
 * to this
 *     ```
       function gridlove_child_load_scripts() {	
       	wp_register_style('gridlove_child_load_scripts', trailingslashit(get_stylesheet_directory_uri()).'style.css', false, GRIDLOVE_THEME_VERSION, 'all');
       	wp_enqueue_style('gridlove_child_load_scripts');
       }
       ```
   
 * Is this ok?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/inline-small-css-5/#post-11976059)
 * yes, that looks OK at first sight 🙂
 *  [MoacirJunior85](https://wordpress.org/support/users/mpjunior85/)
 * (@mpjunior85)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/inline-small-css-5/#post-11977642)
 * hi, please, print it again after the chage.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Inline small CSS’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/autoptimize-criticalcss.svg)
 * [Autoptimize criticalcss.com power-up](https://wordpress.org/plugins/autoptimize-criticalcss/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize-criticalcss/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize-criticalcss/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize-criticalcss/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize-criticalcss/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize-criticalcss/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [MoacirJunior85](https://wordpress.org/support/users/mpjunior85/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/inline-small-css-5/#post-11977642)
 * Status: not resolved