Skip to content

Instantly share code, notes, and snippets.

@innabelaya
Created April 21, 2015 12:10
Show Gist options
  • Save innabelaya/904ab01666fd1a19d312 to your computer and use it in GitHub Desktop.
Save innabelaya/904ab01666fd1a19d312 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' } // стили для всех браузеров, в т.ч. IE9+
},
{
elem : 'conditional-comment',
condition : '<= IE 8',
content : { elem : 'css', url : '_simple.ie.css' } // стили для IE8 и ниже
}
],
scripts : [
{
elem : 'conditional-comment',
condition : '< IE 9',
content : { elem : 'js', url : '//yastatic.net/es5-shims/0.0.1/es5-shims.min.js' }, // Подключение es5-shim для IE8 и ниже
},
{ elem : 'js', url : '_simple.js' }
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment