Skip to content

Instantly share code, notes, and snippets.

@godfreyd
Created August 18, 2016 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save godfreyd/b715d670bc09b9caf4c4adf44e6604a1 to your computer and use it in GitHub Desktop.
Save godfreyd/b715d670bc09b9caf4c4adf44e6604a1 to your computer and use it in GitHub Desktop.
{
block : 'page',
title : 'Support IE8',
head : [
{
elem : 'conditional-comment',
condition : '> IE 8',
msieOnly : false,
content : { elem : 'css', url : '_simple.css' } // styles for all browsers, including IE9+
},
{
elem : 'conditional-comment',
condition : '<= IE 8',
content : { elem : 'css', url : '_simple.ie.css' } // styles for Internet Explorer 8 and older versions
}
],
scripts : [
{
elem : 'conditional-comment',
condition : '< IE 9',
content : { elem : 'js', url : '//yastatic.net/es5-shims/0.0.1/es5-shims.min.js' }, // integrating es5-shim for Internet Explorer 8 and older versions
},
{ elem : 'js', url : '_simple.js' }
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment