Loomio

Change jQuery library source

goobgoob Fri 17 Jan 2014 12:59PMPublicSeen by 72

Given the furore over tracking/snooping by some of the largest web companies, and Google in particular, what do you think about changing the source of our jQuery library from

//ajax.googleapis.com/ajax/libs/jquery/1.x.x/jquery.min.js

to

//code.jquery.com/jquery-1.x.x.min.js

I raise this because I've seen quite a few posts screaming about how Diaspora is allowing tracking of people because it enables googleapis.com. Now this might be a misapprehension on those people's parts, but if there's no performance benefit to using Google's jQuery library over the one on jQuery's domain, I think it would be worth changing it just to avoid people getting a bad impression of Diaspora's privacy policies.

(This is assuming that Diaspora doesn't use Google APIs for anything else...)

Jason Robinson

Jason RobinsonFri 17 Jan 2014 3:53PM

I think it is already a configuration setting whether to use a CDN or local jquery files?

But agree, we could change it to jquery,com instead of google, if pod uses the cdn setting.

Florian Staudacher

Florian StaudacherSat 18 Jan 2014 6:22PM

I don't see a need for a lengthy discussion for this change. just submit it as a pull request :)

goob

goobSat 18 Jan 2014 6:40PM

Well, I wanted to get people's views on it, for example if there was a usability issue in favour of getting the library from Google. If it makes no odds, sure I'll make a PR. I'll just leave it a while longer in case anyone has an objection.

Sean Tilley

Sean TilleyFri 24 Jan 2014 9:46PM

I'd be fine with it being changed, considering quite a few of our users and podmins probably don't like Google very much.

Christophe

ChristopheThu 13 Feb 2014 6:16PM

code.jquery.com is an alias for code.jquery.netdna-cdn.com.

Jason Robinson

Jason RobinsonSun 16 Feb 2014 11:50AM

Merged in develop now.

moy

moySun 22 Jun 2014 8:34PM

and cdnjs.com, as alternate not only for javascript?
https://github.com/cdnjs

Charles-Edouard Coste

Charles-Edouard CosteMon 23 Jun 2014 12:17PM

I don't even understand why any developer may want to use a third party CDN ?!
This is completely silly, according to me.
First of all, static assets should be hosted on the pod or on a CDN related to the pod not to depend on other services. And moreover, static javascript assets should be merged and optimized to save useless requests.
That's my point of view.

Flaburgan

FlaburganMon 23 Jun 2014 12:28PM

@charlesedouardcost it's only a setting, you can choose to use the CDN or not.

Charles-Edouard Coste

Charles-Edouard CosteMon 23 Jun 2014 12:48PM

OK @Flaburgan but actually, to avoid any problem, I would encourage disabling it. (still my own humble opinion)

Load More