Title: Question &#8211; wp_enqueue_*
Last modified: January 8, 2019

---

# Question – wp_enqueue_*

 *  Resolved [Will Stocks](https://wordpress.org/support/users/willstockstech/)
 * (@willstockstech)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/question-wp_enqueue_/)
 * Hey Frank! 🙂
 * Quick question – I’ve always assumed that AO fires after everything else, therefore
   if I conditionally enqueue assets, does AO only concat them for that given page?
   
   Example: if(!is_single) { wp_enqueue_style(‘style-name’, get_stylesheet_uri());}
 * So in theory, I wouldn’t then see styles from that stylesheet on say, my homepage?

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/question-wp_enqueue_/#post-11065107)
 * > I wouldn’t then see styles from that stylesheet on say, my homepage?
 * correct 🙂
 *  Thread Starter [Will Stocks](https://wordpress.org/support/users/willstockstech/)
 * (@willstockstech)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/question-wp_enqueue_/#post-11067903)
 * Ahhh, nice one – thanks Frank!
 * Also, can I be super cheeky – you don’t have a “simple” htaccess that re-writes
   to .gz do you? I’m going to hook into the “pre-zip” function rather than handling
   on-the-fly but htaccess ALWAYS seems to go wrong when I write it!
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/question-wp_enqueue_/#post-11067929)
 * Don’t use it myself and haven’t tested it, but [https://stackoverflow.com/a/9158330/237449](https://stackoverflow.com/a/9158330/237449)
   seems to have some example config that _looks_ sane?
 *  Thread Starter [Will Stocks](https://wordpress.org/support/users/willstockstech/)
 * (@willstockstech)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/question-wp_enqueue_/#post-11068001)
 * Ahhhh, nice one thanks Frank! I wasn’t really sure what to search for haha! 🙂
 * Stackoverflow to the win once again

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

The topic ‘Question – wp_enqueue_*’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [Will Stocks](https://wordpress.org/support/users/willstockstech/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/question-wp_enqueue_/#post-11068001)
 * Status: resolved