Time for action – patch Internet Explorer with polyfills
Perform the steps to patch Internet Explorer with polyfills:
- We have a number of polyfills in the scripts folder namely
html5shiv.js
,respond.js
, andplaceholder.js
. Let's combine these scripts into a single file. - First, create a new JavaScript file named
polyfills.js
that will hold the content of those polyfill scripts. - Open
polyfills.js
in Sublime Text. - Add the following lines to import the polyfill scripts:
// @koala-prepend "html5shiv.js" // @koala-prepend "respond.js" // @koala-prepend "placeholder.js"
Note
The
@koala-prepend
directive is the Koala proprietary directive to import JavaScript files. Read more about it in the Koala documentation page at https://github.com/oklai/koala/wiki/JS-CSS-minify-and-combine ...
Get HTML5 and CSS3: Building Responsive Websites now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.