diff --git a/inc/template.php b/inc/template.php
index b8d9fe6a1d3a499663a2d25141e6cd704ed1c23f..605714f12c989c23383d16c2cd4c513e3bbdce45 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -445,6 +445,9 @@ function tpl_metaheaders($alt = true) {
  */
 function _tpl_metaheaders_action($data) {
     foreach($data as $tag => $inst) {
+        if($tag == 'script') {
+            echo "<!--[if gte IE 9]><!-->\n"; // no scripts for old IE
+        }
         foreach($inst as $attr) {
             echo '<', $tag, ' ', buildAttributes($attr);
             if(isset($attr['_data']) || $tag == 'script') {
@@ -459,6 +462,9 @@ function _tpl_metaheaders_action($data) {
             }
             echo "\n";
         }
+        if($tag == 'script') {
+            echo "<!--<![endif]-->\n";
+        }
     }
 }