Today however I came across another type of HTML5 shim that uses Internet Explorer’s HTML Components, or HTC, files. A HTC file is defined as:
… an HTML file that contains script and a set of HTC-specific elements that define the component.
… arguably saves more bandwidth in the long run because a .css and .htc file can be cached, whereas conditional comments will linger on every response served. It also seems much better looking than the ugly looking conditional comments which only pollute your markup.
I’ve decided to add this method to the ongoing tweaks that I make to this website, and as such, HTML5 specific element support for Internet Explorer, is now handled via Jeffrey’s HTC file.