HTML5 No-JS and Internet-Explorer Flags

  • Standard HTML5:
    <!--[if IE       ]><body data-js="false" data-ie="ie"      ><![endif]-->       <!-- very old fallback -->
    <!--[if lt IE 7  ]><body data-js="false" data-ie="ie-v6"   ><![endif]-->
    <!--[if IE 7     ]><body data-js="false" data-ie="ie-v7"   ><![endif]-->
    <!--[if IE 8     ]><body data-js="false" data-ie="ie-v8"   ><![endif]-->
    <!--[if IE 9     ]><body data-js="false" data-ie="ie-v9"   ><![endif]-->
    <!--[if IE 10    ]><body data-js="false" data-ie="ie-v10"  ><![endif]-->
    <!--[if IE 11    ]><body data-js="false" data-ie="ie-v11"  ><![endif]-->
    <!--[if gt IE 11 ]><body data-js="false" data-ie="ie-edge" ><![endif]-->
    <!--[if !IE  ]> --><body data-js="false" data-ie="false"   ><!-- <![endif]-->  <!-- very old fallback -->
    
    <!-- body's data-js from "false" to "true" (don't "defer" this script, for faster results) -->
    <script data-pagespeed-no-defer="true" pagespeed_no_defer="true" async type="application/javascript" src="data:application/javascript;charset=UTF-8;base64,c2VsZi5kb2N1bWVudC5xdWVyeVNlbGVjdG9yKCJib2R5Iikuc2V0QXR0cmlidXRlKCJkYXRhLWpzIiwidHJ1ZSIpOw=="></script>
    
  • PHP template such as WordPress ?
    <!--[if IE       ]><body <?php body_class(); ?> data-js="false" data-ie="ie"      ><![endif]-->       <!-- very old fallback -->
    <!--[if lt IE 7  ]><body <?php body_class(); ?> data-js="false" data-ie="ie-v6"   ><![endif]-->
    <!--[if IE 7     ]><body <?php body_class(); ?> data-js="false" data-ie="ie-v7"   ><![endif]-->
    <!--[if IE 8     ]><body <?php body_class(); ?> data-js="false" data-ie="ie-v8"   ><![endif]-->
    <!--[if IE 9     ]><body <?php body_class(); ?> data-js="false" data-ie="ie-v9"   ><![endif]-->
    <!--[if IE 10    ]><body <?php body_class(); ?> data-js="false" data-ie="ie-v10"  ><![endif]-->
    <!--[if IE 11    ]><body <?php body_class(); ?> data-js="false" data-ie="ie-v11"  ><![endif]-->
    <!--[if gt IE 11 ]><body <?php body_class(); ?> data-js="false" data-ie="ie-edge" ><![endif]-->
    <!--[if !IE  ]> --><body <?php body_class(); ?> data-js="false" data-ie="false"   ><!-- <![endif]-->  <!-- very old fallback -->
    
    <!-- body's data-js from "false" to "true" (don't "defer" this script, for faster results) -->
    <script data-pagespeed-no-defer="true" pagespeed_no_defer="true" async type="application/javascript" src="data:application/javascript;charset=UTF-8;base64,c2VsZi5kb2N1bWVudC5xdWVyeVNlbGVjdG9yKCJib2R5Iikuc2V0QXR0cmlidXRlKCJkYXRhLWpzIiwidHJ1ZSIpOw=="></script>
    

Leave a Reply