News for hackers. Stuff that matters.
Re:JQuery 1.5.1 released, includes full IE 9 support by r00fus on Thursday February 24, 2011 @07:20PM (#2260449)
Something lighter than 238kb. I remember when jquery first came out, and ExtJS was around that size (actually a bit larger) and one of the big popularity factors of jQuery was a much smaller library size.

Also some places like Apple have their own internal js frameworks and want folks who know and can code bare-metal js.

Re:JQuery 1.5.1 released, includes full IE 9 support by jeresig on Thursday February 24, 2011 @07:59PM (#2260553)
jQuery is not 238KB in any form that you would ship to a user. It is a 29KB minified and gzipped - which is a world of difference and perfectly acceptable for mobile use (likely smaller than most images you'll be using on your site, for example).
Re:JQuery 1.5.1 released, includes full IE 9 support by TNO on Thursday February 24, 2011 @10:52PM (#2260988)
Of course if you have IE6, gzip can be a problem.
Re:JQuery 1.5.1 released, includes full IE 9 support by Strom on Friday February 25, 2011 @01:38AM (#2261300)
If you have IE6, then gzip is the least of your problems.
Re:JQuery 1.5.1 released, includes full IE 9 support by TNO on Friday February 25, 2011 @11:34AM (#2262699)
Ah yes, blame the user. That's always the best policy.
Re:JQuery 1.5.1 released, includes full IE 9 support by ashconnor on Saturday February 26, 2011 @03:27PM (#2266440)
But he's blaming the browser.
Re:JQuery 1.5.1 released, includes full IE 9 support by krakensden on Thursday February 24, 2011 @07:44PM (#2260528)
There's Zepto.js.

For desktop browsers, use the Google CDN and your users probably won't download a thing. And for free, you get sane DOM interaction, and an enormous body of work papering over the differences between browsers.

Re:JQuery 1.5.1 released, includes full IE 9 support by trezor on Friday February 25, 2011 @04:37AM (#2261660)
For desktop browsers, use the Google CDN and your users probably won't download a thing.

And Google is one step closer to tracking everything everyone does on every website.

As if now forcing people to deploy Google Analytics on their websites if they want keyword data from Google wasn't enough, do we really want to help and encourage Google to get in a position where they effectively control the entire internet?

One company controls over 90% of internet search and referral and they actually have the power to kill any company they don't like. Right now they may be behaving, but what if some competitor comes along which is showing some edge? Can we trust Google to do the right thing?

Google also hosts files needed by a majority of websites. They also withhold information from you about you and your site and force you to register an account with them and deploy their software on your sites to get access to a subset of that information. And you are encouraging people to help that company get a stronger grip. For what benefit? At what cost? Sorry for not being a fanboy, but try looking at the bigger picture here.

Would you be OK with one company controlling the entire Internet if that company was Apple? If it was Microsoft?

Hosting your own 23kb jQuery file does not cost that much. Actually practically nothing. Not in terms of bandwidth and neither in terms of perceived performance. Unless you are hosting your website on a 36.6kbps modem, host your own. Do the web some good.

Re:JQuery 1.5.1 released, includes full IE 9 support by jonknee on Friday February 25, 2011 @02:09PM (#2263369)
> And Google is one step closer to tracking everything everyone does on every website.

As long as you link the right files (make sure you specify the specific version and not use the one to give the lastest), there are very long expires headers and Google will have no idea the vast majority of your users ever visited. A user just needs to visit one site using the same version of Google hosted jQuery and they won't have to download it again when visiting another site.

> Hosting your own 23kb jQuery file does not cost that much. Actually practically nothing. Not in terms of bandwidth and neither in terms of perceived performance. Unless you are hosting your website on a 36.6kbps modem, host your own. Do the web some good.

People aren't using Google CDN for the cost, but for the performance. A high percentage of user will have the file cached already, so the performance gain is quite significant. Doubly so in a mobile environment.

Re:JQuery 1.5.1 released, includes full IE 9 support by robryan on Thursday February 24, 2011 @07:53PM (#2260544)
I don't really get this viewpoint, you can load JQuery once then it's cached. Is a barely noticeable load time difference really worth the extra power and time saving you get from JQuery?
Re:JQuery 1.5.1 released, includes full IE 9 support by pjleonhardt on Thursday February 24, 2011 @08:00PM (#2260561)
I downloaded the minified version yesterday: 88kb. 1/3 the size of what you're claiming. You shouldn't be using the development version for production uses (no reason).
Re:JQuery 1.5.1 released, includes full IE 9 support by Refringe on Friday February 25, 2011 @08:40AM (#2262117)
And 88kb isn't even gziped. When it's actually downloaded from your (or a CDN's) server it's less than 30kb.
Re:JQuery 1.5.1 released, includes full IE 9 support by kenjackson on Thursday February 24, 2011 @08:25PM (#2260626)
If you use a CDN isn't it cached across multiple sites?