diff --git a/advagg.install b/advagg.install
index 454dcdf..9e409ff 100644
--- a/advagg.install
+++ b/advagg.install
@@ -227,6 +227,9 @@ function advagg_requirements($phase) {
     if (module_exists('cdn') && function_exists('cdn_theme_registry_alter')) {
       $function = array_pop($hooks['page']['preprocess functions']);
     }
+    if (module_exists('conditional_styles')) {
+      $function = array_pop($hooks['page']['preprocess functions']);
+    }
     if ($function != 'advagg_processor') {
       $requirements['advagg_theme'] = array(
         'title'       => $t('Adv CSS/JS Agg - Theme Hook'),
diff --git a/advagg.module b/advagg.module
index 75991d4..79108f4 100644
--- a/advagg.module
+++ b/advagg.module
@@ -257,17 +257,23 @@ function advagg_theme_registry_alter(&$theme_registry) {
     // Add our own preprocessing function to the end of the array.
     $theme_registry['page']['preprocess functions'][] = 'advagg_processor';
 
-    // If labjs's preprocess function is there already, move it to the bottom.
+    // If labjs's is enabled, move it to the bottom.
     if (module_exists('labjs') && $key = array_search('labjs_preprocess_page', $theme_registry['page']['preprocess functions'])) {
       $theme_registry['page']['preprocess functions'][] = $theme_registry['page']['preprocess functions'][$key];
       unset($theme_registry['page']['preprocess functions'][$key]);
     }
 
-    // If designkit's preprocess function is there already, move it to the bottom.
+    // If designkit is enabled, move it to the bottom.
     if (module_exists('designkit') && $key = array_search('designkit_preprocess_page', $theme_registry['page']['preprocess functions'])) {
       $theme_registry['page']['preprocess functions'][] = $theme_registry['page']['preprocess functions'][$key];
       unset($theme_registry['page']['preprocess functions'][$key]);
     }
+
+    // If conditional styles is enabled, move it to the bottom.
+    if (module_exists('conditional_styles') && $key = array_search('conditional_styles_preprocess_page', $theme_registry['page']['preprocess functions'])) {
+      $theme_registry['page']['preprocess functions'][] = $theme_registry['page']['preprocess functions'][$key];
+      unset($theme_registry['page']['preprocess functions'][$key]);
+    }
   }
 }
 
