CODE: Enforcing browser render engine

CODE: Enforcing browser render engine

This article is of technical nature, and is about how to code the browser to always use a specific rendering engine, to ensure your page shows as expected and desired.

Use the following meta tag in the header section.

<meta http-equiv="X-UA-Compatible" content="IE=Edge" />

In the content, you can have different values.

the value "Edge" forces the browser to use the latest available version on the machine. This will often be used as the latest version is to prefer, but remember if the latest version comes with changes, you are unaware of - this could mean breaking your code.

Fx: "IE=7;IE=9" which will render IE7 and IE8 as IE7, but IE9 as IE9. This can make backward compatibility more granular, but is often corrected through code specific changes instead. This is of course only if it is possible.

The use is often to ensure a rendering of either the latest, or a an older/specific browser model as this would ensure compatibility for an older component needed that cannot be replaced with a newer.

It can be compared to CSS styling, where you can write a color transition of the background as the last parameter, but a colorcode as the first to ensure backward compatibility if the browser doesn't understands the color transition.

To read more about the subject go to: https://stackoverflow.com/questions/6771258/what-does-meta-http-equiv-x-ua-compatible-content-ie-edge-do

要查看或添加评论,请登录

Laurits West ??的更多文章

  • The beauty in a pull request

    The beauty in a pull request

    No matter if they are called pull requests or merge requests, code review, they are a review to help your code quality,…

    1 条评论
  • The work culture that makes the difference

    The work culture that makes the difference

    Culture is the character and personality of your organization. It's what makes your business unique and is the sum of…

    2 条评论
  • What is it like to be a developer at Queue-it?

    What is it like to be a developer at Queue-it?

    To be honest, it's inspiring, it's fun, it's even empowering, but most of all, it is just a really great feeling to…

  • Why FUN at work is so important

    Why FUN at work is so important

    We spend most of our lives sleeping, and the second on that list is working, so don't we deserve to get some fun and…

    3 条评论
  • Why micro-interactions are the key to an attractive application?

    Why micro-interactions are the key to an attractive application?

    Today features and options, just isn't enough. Users want it to be nice, designed with class and makes an interesting…

    1 条评论
  • 7 easy security updates to make your web application more secure

    7 easy security updates to make your web application more secure

    IT Security have never been more important than now! The threat we face is constantly growing, and we must always be…

  • Turning over a new leaf, the best is yet to come

    Turning over a new leaf, the best is yet to come

    On this the last day of the year, it's time to think back, see forward for new adventures and make a status of what…

  • Team Spirit: We are in this TOGETHER

    Team Spirit: We are in this TOGETHER

    Team spirit can be a key driver to making a high performing team, that will produce superior result! The most effective…

  • How to keep your top employees

    How to keep your top employees

    Employees have many reasons to quit their jobs. They want to go back to school, they have to move back home to take…

  • Dear recruiter, this is how to get my attention

    Dear recruiter, this is how to get my attention

    Being a recruiter today, is a dual edge sword. You get an assignment, to locate the right candidate for the client/firm.

社区洞察

其他会员也浏览了