KuraFire

  • Archive
  • RSS
  • Ask me anything

More technical details about Google Chrome Frame

jimray:

I also got curious about the User Agent strings that Chrome Frame embedded inside of IE might return. If you’ve spent any time with User Agent strings, you might expect a certain amount of schizophrenia, depending on where you look for them, either on the server side or the client side. I wrote a quick PHP script to echo out the User Agent as PHP sees it and to echo out the User Agent as javascript sees it. The server-side detection sees the browser as IE, with one tiny exception: it adds a string “chromeframe” to the User Agent that you could easily look for and act on. The client-side detection sees the browser as Google Chrome — the exact same User Agent as when you visit the page using the Chrome browser.

Please don’t ever do this. UA sniffing is unreliable, dangerous, and a main reason we’re having this problem with IE in the first place. The sooner we eradicate the practice of UA sniffing, the better the Web will be.

Instead, do feature detection. While that link focuses on HTML5 only, Modernizr does feature detection for CSS3 as well.

Source: jimray

  • 2 years ago > jimray
  • 242
  • Permalink
  • Share
    Tweet

242 Notes/ Hide

  1. cicaleepb7836 reblogged this from jimray
  2. druckerpatronen-fur-canon-mg5150 reblogged this from jimray
  3. steven1968 reblogged this from jimray
  4. plus-size-dresses reblogged this from kurafire
  5. fahrrad-test-2012 reblogged this from jimray
  6. alaine-newton reblogged this from jimray
  7. top-replica-handbags reblogged this from jimray
  8. printers-reviews reblogged this from jimray
  9. replica-louis-vuitton-handbags reblogged this from jimray
  10. cna-certification-a reblogged this from jimray
  11. elektrischescooter reblogged this from jimray
  12. flexseal reblogged this from jimray
  13. edinburgh-escorts reblogged this from jimray
  14. sheilazombeckw896 reblogged this from jimray
  15. commission-avalanche-review liked this
  16. constipation-home-remedies liked this
  17. suv-reviews liked this
  18. lovelywallpaper liked this
  19. hiit-training liked this
  20. ugg--boots liked this
  21. creer-un-site-internet liked this
  22. terracottatiles liked this
  23. sat9 liked this
  24. 1-auto-insurance-quotes liked this
  25. childrenswear9 liked this
  26. stage2pilotage liked this
  27. jimray posted this
← Previous • Next →

About

A designer, developer and entreprenerd.

Main blog at: farukat.es

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr