Disable/remove javascript does anyone know how to disable a javascript loaded by drupal? 

&lt;script src="/profiles/ncr/themes/contrib/bootstrap/js/bootstrap.js?ny8c02"&gt;&lt;/script&gt;


I tried the following in the template.php file but no luck.

function bootstrap_ncr_js_alter(&amp;$javascript) {
    $path = drupal_get_path('module', 'js_theme');
    unset($js[$path . '/bootstrap.js']);
}
So it seems like the JavaScript file you are trying to remove is actually coming from a theme. You were also trying to unset array item in non existing variable $js. You could try if this works for you:

function bootstrap_ncr_js_alter(&amp;$javascript) {
  $path = drupal_get_path('theme', 'bootstrap');
  unset($javascript[$path . '/js/bootstrap.js']);
}