Title: Repeated inline css
Last modified: May 4, 2020

---

# Repeated inline css

 *  Resolved [jmslbam](https://wordpress.org/support/users/jmslbam/)
 * (@jmslbam)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/repeated-inline-css/)
 * Hi,
 * The client wanted to switch from WP Rocket to Hummingbird, but I am encoutering
   some issues.
 * 1. When selecting the combine option for CSS files, it doesn’t combine the files.
 * 2. For every CSS file that I have selected to combine, it adds inline CSS to 
   it.
 * The duplicate CSS code is from [https://nl.wordpress.org/plugins/wp-responsive-menu/](https://nl.wordpress.org/plugins/wp-responsive-menu/)
   
   See Gist, because I enabled WP Rocket again [https://gist.github.com/jmslbam/7379f6b67f39f1346f8bf9a86d0d428b](https://gist.github.com/jmslbam/7379f6b67f39f1346f8bf9a86d0d428b)
 * I have disabled this option and have fallen back on WP Rocket assets optimazation…
   but I wanted to let you know the issues that I have encoutered.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Frepeated-inline-css%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Anton Vanyukov](https://wordpress.org/support/users/vanyukov/)
 * (@vanyukov)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/repeated-inline-css/#post-12793808)
 * Hi [@jmslbam](https://wordpress.org/support/users/jmslbam/),
    I can see those
   styles are still present even without Hummingbird. Please check for the inline
   styles with ID wprmenu.css-inline-css. Hummingbird will adjust the ID’s, to track
   proper groups of files. That’s why it might look like it’s coming from Hummingbird.
 * In terms of combining. The Asset Optimization engine will use a smart algorithm
   to combine assets. It won’t combine all the files, only those that have matching
   attributes. For example, if a CSS will only load on IE or on screens larger than
   1280px, and the other one loads everywhere, these two files will not be combined.
   We do this for two reasons – first of all, this reduces errors and style breaks,
   and second of all, on HTTP/2 combining is not the recommended approach, because
   loading multiple smaller files should be faster than loading a single large file.
 * Best regards,
    Anton
 *  Thread Starter [jmslbam](https://wordpress.org/support/users/jmslbam/)
 * (@jmslbam)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/repeated-inline-css/#post-12822486)
 * Hi Anton,
 * Thank you for you quick reply. If had a release of a other big project so my 
   focus was there the last days, sorry.
 * **The Asset Optimization logic**
    Thank you for your explaination. It’s indeed
   not necessary to combine everything to 1 files, especially with HTTP/2.
 * **About the styles**
    Correct, the styles are still there, but now only once,
   and not repeated for every enqueued CSS file. That is the reason I disable the
   assets optimization of HB.
 * Kinds regards,
 * Jaime!

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

The topic ‘Repeated inline css’ is closed to new replies.

 * ![](https://ps.w.org/hummingbird-performance/assets/icon-256x256.gif?rev=2633221)
 * [Hummingbird Performance - Cache & Page Speed Optimization for Core Web Vitals | Critical CSS | Minify CSS | Defer CSS Javascript | CDN](https://wordpress.org/plugins/hummingbird-performance/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hummingbird-performance/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hummingbird-performance/)
 * [Active Topics](https://wordpress.org/support/plugin/hummingbird-performance/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hummingbird-performance/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hummingbird-performance/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [jmslbam](https://wordpress.org/support/users/jmslbam/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/repeated-inline-css/#post-12822486)
 * Status: resolved