diff --git a/template.php b/template.php
index ba7c905..bcd1b1d 100755
--- a/template.php
+++ b/template.php
@@ -681,10 +681,12 @@ function _mobile_jquery_load_files($theme = 'mobile_jquery') {
       drupal_add_css(drupal_get_path('theme', $theme) . '/styles/jquery.mobile.overrides.css', array_merge($css_options, array('weight' => 99)));
       drupal_add_css('http://code.jquery.com/mobile/1.0.1/jquery.mobile.structure-1.0.1.min.css', array_merge($css_options, array('weight' => 100)));
     }
+    if ( !module_exists('jquerymobile') ) {
+      drupal_add_js('http://code.jquery.com/jquery-1.6.4.min.js', array_merge($js_options, array('weight' => 100)));
+      drupal_add_js('http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js', array_merge($js_options, array('weight' => 101)));
+    }
     drupal_add_css(drupal_get_path('theme', $theme) . '/styles/' . $theme . '.css', array_merge($css_options, array('weight' => 101)));
-    drupal_add_js('http://code.jquery.com/jquery-1.6.4.min.js', array_merge($js_options, array('weight' => 100)));
     drupal_add_js(drupal_get_path('theme', $theme) . '/scripts/' . $theme . '.js', array_merge($js_options, array('weight' => 101)));
-    drupal_add_js('http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js', array_merge($js_options, array('weight' => 101)));
     
     return TRUE;
 }
