r/webdev • • Jun 09 '16

jQuery 3.0 Final Released!

https://blog.jquery.com/2016/06/09/jquery-3-0-final-released/
184 Upvotes

41 comments sorted by

43

u/pitchingkeys Jun 09 '16

It uses requestAnimationFrame now? That's pretty cool. No more garbage jQuery animations 👌

-9

u/Jafit Jun 10 '16

A tool is only as good as the person using it

14

u/nyxin The 🍰 is a lie. Jun 10 '16

Not when you're using the wrong tool for the job.

10

u/pinkyabuse Jun 10 '16

Does anyone else use jQuery but isn't excited by a new version of jQuery?

6

u/[deleted] Jun 10 '16

Me

1

u/Yurishimo Jun 10 '16

Me. WordPress core is using the latest patches of the 1.12.x version and won't be updated anytime soon it looks like. There's too much in the plugin space that could break from a major version update. For the most part it's all still the same, but we won't get access to the newer animation things which means bringing in more code potentially for complex projects.

4

u/icefall5 Angular / ASP.NET Core Jun 09 '16

But I feel like I only recently got the basics of jQuery 2.x figured out. :(

22

u/thatssorelevant Jun 10 '16

Here, it sounds like this one is for you: http://vanilla-js.com/

2

u/[deleted] Jun 10 '16

this made my day

0

u/[deleted] Jun 10 '16

[deleted]

-1

u/nyxin The 🍰 is a lie. Jun 10 '16

....it's a joke website. If you've learned javascript, you've already learned that crap.

13

u/[deleted] Jun 10 '16

It's jquery, it's never going to change that much.

1

u/MyGodItsAmazing Jun 10 '16

The differences look so minimal I would not worry about it.

10

u/VasuLief Jun 09 '16

Great! Too bad I'm stil have to support IE8, so upgrading is impossible :(

11

u/nut315 Jun 10 '16

Depends on the project, but we don't serve js to IE9 and below. Same for old Android browsers. It's really freeing, and makes sites a lot more predictable when testing.

The technique we use for this is Cutting the Mustard. It makes supporting old browsers much easier as they should all get the same 'core' experience. Users should still be able to access all the content etc, just not with the save level of interactivity - which is fine in most cases imo.

2

u/rk06 v-dev Jun 10 '16

just inform your customers that you are ending IE8 support because microsoft has stopped security patch releases for IE8-10

0

u/[deleted] Jun 10 '16

[deleted]

2

u/[deleted] Jun 10 '16

That sounds cool and all, but the problem with old browsers isn't just a lack of features, it's bugs.

0

u/[deleted] Jun 09 '16

[deleted]

16

u/Veksayer Jun 09 '16

I am not sure if I should continue to care for IE8 or not.

The only one who can answer that is your website visitors. Check your site analytics and see how much IE8 traffic you get.

1

u/Disgruntled__Goat Jun 10 '16

I just realised today one of my sites gets only 2% traffic from IE, and less than 2% of that is IE8 ands below!

0

u/[deleted] Jun 09 '16

[deleted]

7

u/Fidodo Jun 10 '16

Without metrics go by demographics. Regional browser stats are available, and you can make judgements based on the industry and expected age of the users.

4

u/Mattachoo Jun 09 '16

What browser do the business owners use? If they are above IE8 then you shouldn't have a problem. If you're really worried, make sure you code the site without using any deprecated jquery methods. If after collecting some stats you see IE8 usage is low, you can upgrade. Jquery has a migration guide but I've found unless you're doing massively complex stuff you can mostly do a "drop-in" replacement.

IE8 is sitting at a little above 1% global usage. If that number is too high to justify a broken site, then code for it.

In my opinion, you'd probably be fine coding for IE9 and above (remember, as long as the business owners are using something higher than IE8), especially if their site is just static content.

6

u/TrackieDaks Jun 10 '16

Graceful degradation.

Just because you need to support an old browser, doesn't mean it has to look pretty. So long as it is functional, then it doesn't need to animate or have rounded edges.

1

u/[deleted] Jun 10 '16

You can get an idea from their target audience even without a website.

1

u/[deleted] Jun 10 '16

If your IE8 visitors are not making you money, don't spend an instant of time.

Literally no benefit, unless your life goal is to be hired by a company to manage IE8.

0

u/nullScotchException Jun 10 '16 edited Jun 14 '16

Jesus fuck and here I am 80% done updating our legacy code to latest stable. Suppose if I paid attention I would have known this was coming but I'm a backend guy on a wicked low bus factor platform.

**Edit: Jeez dropped from 24 -> 0 points today, ya'll got a case of the Mondays

10

u/NotLyon Jun 10 '16

It's practically the same API?

1

u/nullScotchException Jun 14 '16

Obviously? If it was the same there would be no need to update.

I wouldn't bother taking it so seriously, just blowing off some lighthearted steam that right as I was finishing there is a new version.

4

u/[deleted] Jun 10 '16

I'm a backend guy

We can all tell :)

1

u/nullScotchException Jun 14 '16

You guys and your knockouts this and reflows that. Our front end guys look at my NLS code like it's fucking wizardy and I'm sitting here with my mind blown over some fancy sorting shit that doesn't cause a page reload.

1

u/[deleted] Jun 14 '16

NLS as in oN-Line System? Shit's so obscure I don't even know if I googled the right thing :P

0

u/[deleted] Jun 10 '16

[deleted]

12

u/Skwai Jun 10 '16

Agree. jQuery has become more and more redundant as vanilla JS (ie. ES6/7) and SPA frameworks evolve

5

u/erythro Jun 10 '16

Edge cases, browser support, and code legibility are good reasons to stick with it. The thread on /r/programming has some interesting discussion.

4

u/[deleted] Jun 10 '16

Lol, I just noticed I'm -9 and you're +11 for agreeing with me? Are you a wizard? :o

3

u/Jafit Jun 10 '16

The DOM is still the worst API ever designed though. jQuery is much easier to work with.

But I hate it that people just slap it on a page in order to use one or two functions.

2

u/0x62047011 Jun 10 '16

I still use it semi-daily; it just barely passes the threshold of usefulness over jQLite when writing involved angular directives.

-3

u/AureusStone Jun 10 '16

Yeah no one uses jQuery anymore.

www.trends.builtwith.com/javascript/jQuery

2

u/lolhaskal Jun 10 '16

Most of those must be using one feature of jQuery just because they don't know it could be done with vanilla. Or bootstrap sites that come bundled with jQuery (and never use it), or Wordpress' bootstrap themes (that never use it except for animation).

Yeah, all the cool kids use it. We should use it too.

1

u/AureusStone Jun 10 '16

I don't think the highest traffic websites in the world have included jQuery without using it. I also don't think it is standard to just bundle jQuery with bootstrap.

Whether jQuery is good or bad is irrelevant. You are delusional if you think jQuery is not popular. Surely any improvement to a popular library is a good thing. Lots of people care, you are just not over of them.

1

u/lolhaskal Jun 13 '16

Whether jQuery is good or bad is irrelevant.

So we use it just because everyone else is using it, the 'big ones' included, never to critically assess its utility in out project. Got ya.

1

u/AureusStone Jun 13 '16

And again you are assuming these developers are incompetent just because they are using a library you don't like. You are also trying to argue how bad jQuery is, while I am just pointing out that plenty of devs use jQuery and many of them will be excited about this major update.

1

u/erythro Jun 10 '16

The www on your URL kills it for me