digisavvy / some-like-it-neat

A WordPress Theme Using _s, Bourbon + Neat and Theme Hook Alliance
GNU General Public License v2.0
276 stars 61 forks source link

Better Legacy Support #98

Closed bryanwillis closed 8 years ago

bryanwillis commented 8 years ago

Since were using selectivizr and modernizr, makes sense to add the x-ua-compatible tag to better support legacy browsers. An alternative and probably even a better way to do this to avoid issues with too many characters coming before the x-ua-compatible tag is to use http headers:

add_action( 'send_headers', 'some_like_it_neat_legacy_browsers' );
function some_like_it_neat_legacy_browsers() {
    header( 'X-UA-Compatible: IE=edge,chrome=1' );
}