Browser specific javascript inclusion It seems like the browser conditionals:

  drupal_add_js(drupal_get_path('module', 'cufon') . '/js/cufon-drupal.js',
 array('group' =&gt; JS_THEME, 'browsers' =&gt; array('IE' =&gt; 'gte IE 9', '!IE' =&gt; TRUE), 
'weight' =&gt; 999, 'preprocess' =&gt; FALSE));


included in template.php (or a module) are not working due to the fact browsers option is supported for drupal_add_css() but not for drupal_add_js().

Can one state a not-hackish/patchy solution to exclude this file cufon-drupal.js on older browsers?

A solution like

&lt;!--[if gte IE 9]&gt;
&lt;script src='&lt;?php drupal_add_js(drupal_get_path('module', 'cufon') . '/js/cufon-drupal.js'); ?&gt;'&gt;
&lt;/script&gt;&lt;![endif]--&gt;


in html.tpl.php
is not working.
Seems like there is a non-drupal solution:

if(jQuery.browser.version.substring(0, 2) != "8.") { alert("not ie8"); }


It is not very handy as I have to paste inside the brackets the content of cufon-drupal.js content.