Title: CSS with query string not optimized?
Last modified: August 30, 2016

---

# CSS with query string not optimized?

 *  Resolved [ilanfl](https://wordpress.org/support/users/ilanfl/)
 * (@ilanfl)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/css-with-query-string-not-optimized/)
 * Hi. Great plugin, I love it!
 * I’m inlining all my CSS (found that this approach is best for my site), but one
   of the CSS files is not being caught and inlined. The filename looks like this:
   
   language-selector.css?v=3.0
 * So I think the reason it isn’t caught is because of the query string. Not 100%
   sure.
 * Any way you can help?
 * Thanks,
    Ilan
 * [https://wordpress.org/plugins/autoptimize/](https://wordpress.org/plugins/autoptimize/)

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

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/css-with-query-string-not-optimized/#post-6599079)
 * no, query-string shouldn’t make a difference. hostname maybe?
 * frank
 *  Thread Starter [ilanfl](https://wordpress.org/support/users/ilanfl/)
 * (@ilanfl)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/css-with-query-string-not-optimized/#post-6599145)
 * Hi Frank,
 * Don’t understand what you mean by ‘hostname’.
 * It is served from my server, from the same domain.
 *  [AJ @ WpFASTER.org](https://wordpress.org/support/users/ajm_1976/)
 * (@ajm_1976)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/css-with-query-string-not-optimized/#post-6599146)
 * Hi ilanfl,
 * WPML does not enqueue this file per WordPress standards so AO can’t aggregate
   it.
 * If you’re not using it or are using the custom stylesheet you can disable it 
   by adding the following to your config file:
    `define('ICL_DONT_LOAD_LANGUAGE_SELECTOR_CSS',
   true);`
 * Otherwise, there’s nothing much to do about it other than putting a nasty bug
   in WPML’s ear.
 * Be well,
    AJ
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/css-with-query-string-not-optimized/#post-6599147)
 * ah, … WPML … 🙂
 * [I’ve added a small filter](https://github.com/futtta/autoptimize/commit/2f42f3238cd15b4258c4992481245fc357607c45)
   that will allow knowledgeable developers to tell AO to consider multiple domains
   as being part of the same wordpress-installation (while waiting on feedback from
   WPML’s compatibility team). One could [download the dev-build from GitHub](https://github.com/futtta/autoptimize/archive/master.zip)
   and give that filter a try 🙂
 * frank
 *  Thread Starter [ilanfl](https://wordpress.org/support/users/ilanfl/)
 * (@ilanfl)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/css-with-query-string-not-optimized/#post-6599148)
 * Frank, I’ll try it.
 * Thank you both, I appreciate your help.

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

The topic ‘CSS with query string not optimized?’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [query](https://wordpress.org/support/topic-tag/query/)
 * [Query String](https://wordpress.org/support/topic-tag/query-string/)

 * 5 replies
 * 3 participants
 * Last reply from: [ilanfl](https://wordpress.org/support/users/ilanfl/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/css-with-query-string-not-optimized/#post-6599148)
 * Status: resolved