Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
{
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