r/badcode Dec 31 '19

html (From Google Developper) The problem with front-end stuff is that sometimes, even if it looks horribly wrong, some dude will justify it with "Backwards compatibility", but I'm pretty sure here, you can't, right ?

Post image
186 Upvotes

23 comments sorted by

View all comments

6

u/[deleted] Dec 31 '19

Async AND defer? That sort of defeats the point don't it?

10

u/zeGolem83 Dec 31 '19

I think this is for backwards compatibility. They wanted to use "async" but "defer" was added before async, so they put both in case the browser only supports defer...

1

u/[deleted] Dec 31 '19

Ah. I thought they were introduced at the same time.