Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

grigory.shein@gmail.com's avatar

How would you go about browser compatibility

Before now I've been working on projects where you kinda don't have time to bother about such stuff: if nobody tells you if it's not working in their browser - that's good enough.

But I accidentally opened what I do now in the last safari for windows (2012 version) and kinda freaked out that nothing works at all.

Ideally, it would be cool if there was a service where you could pick a percentage of users you want to be compatible to: like 90%, 95%, 98% and it would give you the list of oldest browser versions that you need to comply with. (like to get to 99% you have to make your site work with ie9). And having that information I'd pick the technologies that I'd have to switch from or provide a fallback.

But that's in my dreamland.

And how would you go about it?

0 likes
2 replies
Tray2's avatar

Not knowing what it is that does not work but here are some suggestions

  • Check caniuse.com to see what is supported by which browser
  • Use autoprefixer for you css
  • Feauture queries is your friend
  • Use babel js
2 likes
jlrdw's avatar
jlrdw
Best Answer
Level 75

Why don't you use browserstack.

Also another good way to handle browser compatibility is to not use the latest hot thing a hot package hot Library. Rather like Enterprise companies always lag back seven or eight months or even up to a year with technology.

I can tell you now large Enterprise does not go ooh, ooh, ooh, an update to a hot package we need to update our 23 million dollar software.

In fact most state governments and very large Enterprise even lag behind around a year on operating systems.

2 likes

Please or to participate in this conversation.