diff --git a/advagg.install b/advagg.install
index 5f329dc..b7f6ed8 100644
--- a/advagg.install
+++ b/advagg.install
@@ -209,10 +209,14 @@ function advagg_requirements($phase) {
     }
     init_theme();
     $hooks = theme_get_registry();
+    // TODO: Make this exception list into a hook.
     $function = array_pop($hooks['page']['preprocess functions']);
     if (module_exists('labjs')) {
       $function = array_pop($hooks['page']['preprocess functions']);
     }
+    if (module_exists('headjs')) {
+      $function = array_pop($hooks['page']['preprocess functions']);
+    }
     if (module_exists('cdn') && function_exists('cdn_theme_registry_alter')) {
       $function = array_pop($hooks['page']['preprocess functions']);
     }
