r/javascript • • Apr 28 '19

7 Useful JavaScript Tricks

https://davidwalsh.name/javascript-tricks
505 Upvotes

36 comments sorted by

View all comments

57

u/drowsap Apr 28 '19

URLSearchParams is awesome!

7

u/yeskia Apr 29 '19

It is, but worth noting is isn't supported by any version of IE. This bit me a couple of weeks ago but luckily there are a few small polyfills that do the job.

13

u/Tyreal Apr 29 '19

So when are people going to permanently start dropping IE? 2020 when Windows 7 stops being supported? In a decade perhaps?

4

u/asdf7890 Apr 29 '19

So when are people going to permanently start dropping IE?

Not soon enough!

2020 when Windows 7 stops being supported?

IE11 is officially supported until then end of Win10, as is MS's standard (the browser EOL being tied to the EOL of the OS revisions it was installed with by default). Unfortunately they've said Win10 is to be the last major release on the desktop, so unless/until this policy changes IE11 will keep being available and getting security updates so some will insist on keeping using it...

In a decade perhaps?

It depends on your target audience of course. Some of our clients have only recently stopped using IE8. IE11 is going to be a Thing for us to deal with for some time to come.

2

u/ninetailsbr Apr 29 '19

maybe when IE definitely changes it's engine to Chromium you may ignore it for high end users website (your site/product is not targeted for them)

...or you can just polyfill

4

u/Tyreal Apr 29 '19

This isn’t Edge though. IE is never getting updated again

1

u/TheScapeQuest Apr 29 '19

Depends on your product I suppose. We already don't support IE. But we're B2B, so we can have more say.

3

u/Tyreal Apr 29 '19

I hear ya. That B2B market sure is sweet. I feel bad for all those poor bastards supporting IE6 at Amazon.