Is it still valid to use IE=edge,chrome=1?
Asked Answered
A

4

80

I read Chrome Frame closed last month, I thus tried to understand what it'd mean for the X-UA tag and after 3 hours of research I still didn't find the answer I'm looking for, my question is the following :

Is it still valid nowadays to use IE=edge,chrome=1 or should I stop at IE-edge from now on ? Or what would be the best practice to do regarding X-UA, should it be avoided ?

Argumentation answered 27/2, 2014 at 4:28 Comment(1)
Note that Chrome Frame has been retired. blog.chromium.org/2013/06/retiring-chrome-frame.htmlCandlewood
H
122

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> serves two purposes.

  1. IE=edge: specifies that IE should run in the highest mode available to that version of IE as opposed to a compatability mode; IE8 can support up to IE8 modes, IE9 can support up to IE9 modes, and so on.
  2. chrome=1: specifies that Google Chrome frame should start if the user has it installed

The IE=edge flag is still relevant for IE versions 10 and below. IE11 sets this mode as the default.

As for the chrome flag, you can leave it if your users still use Chrome Frame. Despite support and updates for Chrome Frame ending, one can still install and use the final release. If you remove the flag, Chrome Frame will not be activated when installed. For other users, chrome=1 will do nothing more than consume a few bytes of bandwidth.

I recommend you analyze your audience and see if their browsers prohibit any needed features and then decide. Perhaps it might be better to encourage them to use a more modern, evergreen browser.

Note, the W3C validator will flag chrome=1 as an error:

Error: A meta element with an http-equiv attribute whose value is
X-UA-Compatible must have a content attribute with the value IE=edge.
Headrick answered 27/2, 2014 at 5:10 Comment(5)
Thanks a lot for the explaination, it helped me a lot.Argumentation
Unfortunately, Google Chrome Frame was discontinued in January 2014 (blog.chromium.org/2013/06/retiring-chrome-frame.html). It's still available to download from mirrors but it won't be further developed.Gav
I'll add - that meta line doesn't validate in the W3C Validator. I had it too. I'm removing the chrome=1 at this point.Mesentery
Note, this does not force IE11 in enterprise mode (IE8 compat) into any different rendering modes. IE11 in compatibility mode is indeed forced to upscale.Imprecate
To avoid validation errors, set it as a true http header instead of using a meta tag. This has the added benefit of not requiring IE to reparse using a different engine when it hits the meta tag because it already knows which engine to use before it even looks at your markup. validatethis.co.uk/news/… (Rendering Speed)Aric
M
15

It's still valid to use IE=edge,chrome=1.

But, since the chrome frame project has been wound down the chrome=1 part is redundant for browsers that don't already have the chrome frame plug in installed.

I use the following for correctness nowadays

<meta http-equiv="X-UA-Compatible" content="IE=edge" />
Mercorr answered 23/10, 2014 at 10:8 Comment(0)
H
4
<head>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>

worked for me, to force IE to "snap out of compatibility mode" (so to speak), BUT that meta statement must appear IMMEDIATELY after the <head>, or it won't work!

Hamiltonian answered 22/1, 2015 at 6:18 Comment(2)
There should not be a need to get IE to "snap out of compatibility mode" via a META element - a strict HTML4/XHTML1 doctype, or the new, simplified HTML5 doctype (i.e. <DOCTYPE html>) will trigger Standards Mode in Internet Explorer (as well as all other popular browsers.)Mimetic
The meta element is still required even with IE11 if the site is on an Intranet, since by default IE11 runs these sites in compatibility mode.Scapula
B
0

please see What does <meta http-equiv="X-UA-Compatible" content="IE=edge"> do? November 2021 Update by L84 As ... 10+ years old, my recommendation would be to leave this tag out altogether, unless you must support old legacy browsers.

Bedrabble answered 14/12, 2022 at 12:29 Comment(2)
More suitable as a comment rather than answerClip
This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From ReviewHyla

© 2022 - 2024 — McMap. All rights reserved.