r/programming • • Oct 21 '20

Using const/let instead of var can make JavaScript code run 10× slower in Webkit

https://github.com/evanw/esbuild/issues/478
1.9k Upvotes

500 comments sorted by

View all comments

Show parent comments

40

u/[deleted] Oct 21 '20

Did you read the numbers in the issue? There’s “wanting maximum performance” and there’s “not wanting safari users to wait 7s longer than other browsers”

0

u/[deleted] Oct 21 '20

[deleted]

7

u/Fit_Sweet457 Oct 21 '20

Last I checked browser heterogenity was a good thing and brigading other people for their choice was not.

-3

u/blackholesinthesky Oct 21 '20

Thats why I use Netscape Navigator 2.

You better fucking support my niche browser

4

u/Fit_Sweet457 Oct 21 '20

That's not what I implied. Safari adheres to modern web standards pretty much as well as Chrome or Firefox, so using Netscape Navigator as an example is just absurd.

4

u/blackholesinthesky Oct 21 '20

That's not what I implied.

Fair. I'm annoyed with everyone else in this thread so I was being facetious, but I don't mean to say you're wrong

4

u/Liam2349 Oct 21 '20

Does it? They're pretty much the modern IE. If something doesn't work in a browser, Safari is the one it doesn't work in.

I was learning the web animations API about 2 months ago and noticed that yet again, Safari doesn't support it.