4 ms·
Reasons to use jquery - Other devs in the team are using it - Unless it's a small pet project, you will probably need it down the road even if you don't need
by jsnk 13y ago
Reasons to use jquery
- Other devs in the team are using it
- Unless it's a small pet project, you will probably need it down the road even if you don't need it now
- Minified jquery is like 32kb. That means literally nothing in modern web. Unless you are from 1995 using 2G connection, this doesn't matter.
- Modern browsers are good. It's going to handle jquery like a champ. Don't worry.
- jQuery code is probably better than yours.
- Lots of 3rd party libraries have jquery as a dependancy.
Reasons not to use jquery and use just javascript
- Want to learn javascript
- Writing a library or framework and you don't want jquery dependancy
- Working on a very small website
- _getify 13y ago> Minified jquery is like 32kb. That means literally nothing in modern web. Unless you are from 1995 using 2G connection, this doesn't matter. Or on like better than 80% of all mobile data connections in the world. But mobile is so niche, right? No need to worry about them.
- jsnk 13y agoAre you sure that 80% of all mobile data connections in the world is like 2g? Mobile speed in developing world isn't actually that bad. http://www.diffusedonline.com/wp-content/uploads/2012/04/page-load-speeds-by-country--e1334947743593.png http://www.diffusedonline.com/wp-content/uploads/2012/04/pag...
- _getify 13y ago> In Q1 2013, average connection speeds on surveyed mobile network operators ranged from a low of 0.4 Mbps to a high of 8.6 Mbps. Only nine operators demonstrated average connection speeds in the aforementioned broadband category while 64 more operators showed average connection speeds above 1 Mbps. http://thenextweb.com/insider/2013/07/23/akamai-average-internet-speed-up-17-year-over-year-to-finally-pass-3-mbps-while-mobile-data-traffic-doubled/#!t4ZMS http://thenextweb.com/insider/2013/07/23/akamai-average-inte... My 80% number was hyperbole, but I do think the data supports that on world-wide average, mobile connections are drastically lower, and so making assumptions about a file size downloading quickly on fast broadband is ignoring an increasingly important part of the web traffic, which are years behind wired connections in terms of speeds.