diff -r uniform/uniform.js
--- /dev/null
+++ uniform/uniform.js
@@ -0,0 +1,7 @@
+Drupal.behaviors.uniform = function(context) {
+  if (Drupal.settings.uniform != undefined) {
+    if (Drupal.settings.uniform['selectors']) {
+      $(Drupal.settings.uniform['selectors'].join(', '), context).uniform();
+    }
+  }
+}
\ No newline at end of file
diff -r uniform/uniform.module
--- uniform/uniform.module
+++ uniform/uniform.module
@@ -105,7 +105,12 @@
   
     } else {
       // add script to enable theming of elements defined in settings
-      drupal_add_js('$(function(){ $("' . implode(",", array_keys(array_filter($enabled))) . '").uniform(); });', 'inline');
+      $uniform_selectors = array(
+        'selectors' => array_keys(array_filter($enabled))
+      );
+
+      drupal_add_js(array('uniform' => $uniform_selectors), 'setting');
+      drupal_add_js($modpath .'/uniform.js');
     }
   }
 }
