raku.org icon indicating copy to clipboard operation
raku.org copied to clipboard

Upgrade to same version of jQuery on all of our sites

Open zoffixznet opened this issue 9 years ago • 12 comments

Currently modules.perl6.org uses 2.1.4, but perl6.org uses an older version.

We need to sync up the two sites (and any other ones that use jQuery, e.g. https://github.com/perl6/doc/tree/makefile) to use the same version. Simplify maintenance.

(RE: http://irclog.perlgeek.de/perl6/2015-10-13#i_11370099)

zoffixznet avatar Oct 13 '15 21:10 zoffixznet

Wouldn't a cdn hosted version help here?

jonathanstowe avatar Oct 13 '15 22:10 jonathanstowe

Sure, but we currently use 1.something CDN on perl6.org and newer 2.1.4 CDN on modules.perl6.org. We need to bring everything up to use same version.

I should have time to look at this tomorrow.

zoffixznet avatar Oct 13 '15 22:10 zoffixznet

+1 to using the same jquery version everywhere, -1 to using a CDN. The privacy issues simply aren't worth it.

moritz avatar Oct 18 '15 20:10 moritz

@moritz

The privacy issues simply aren't worth it.

Would you have any info for me to look up regarding the privacy issues? I think it's the first time I hear of such an issue raised regarding serving JS libs from CDN.

zoffixznet avatar Oct 19 '15 02:10 zoffixznet

@zoffixznet if you server JS files from a CDN, you give then one running the CDN a pretty accurate picture about who visits your site, and when. Which is really a leak of private information.

moritz avatar Oct 19 '15 05:10 moritz

Note that because of the nature of the request, the first request from a user is the one the CDN gets; future requests will come from cache until it's cleared.

I think that for a public site about an open source language where we probably have volunteers donating serving costs, using a CDN makes sense.

On Mon, Oct 19, 2015 at 1:02 AM, Moritz Lenz [email protected] wrote:

@zoffixznet https://github.com/zoffixznet if you server JS files from a CDN, you give then one running the CDN a pretty accurate picture about who visits your site, and when. Which is really a leak of private information.

— Reply to this email directly or view it on GitHub https://github.com/perl6/perl6.org/issues/40#issuecomment-149099083.

Will "Coke" Coleda

coke avatar Oct 19 '15 13:10 coke

I agree with @coke. Maybe it would be even better to let all the world know that the Perl6 web site is frequented across the word. It's kind of marketing.

asb-capfan avatar Oct 19 '15 16:10 asb-capfan

I'm in the "not fussed by the potential privacy issue camp", but if it was considered to be important a fairly trivial expedient would be to make a rewriting proxy on the server(s) (trivial assuming apache with mod_rewrite available.)

jonathanstowe avatar Oct 19 '15 17:10 jonathanstowe

make a rewriting proxy on the server(s) (trivial assuming apache with mod_rewrite available.)

:+1: on that. We can then have just one place to edit when upgrading in the future (as opposed to, currently, 3, if we use a CDN).

And mod_rewrite can also be used for this Issue, if enabled: https://github.com/perl6/modules.perl6.org/issues/13

zoffixznet avatar Oct 19 '15 17:10 zoffixznet

I can't find a reference to a jquery file in any of the files in my local repo but looking at the source for the live site shows a link to a CDN. Should this issue be closed?

jotasprout avatar Oct 02 '16 22:10 jotasprout

The perl6.org's jQuery inclusion is here and modules.perl6.org's jquery inclusion is here. While the two versions are the same these days, it would be nice to see if they can be upgraded to latest and greatest. I see jQuery 3.1 is out, while the sites still use 1.13.

zoffixznet avatar Oct 03 '16 02:10 zoffixznet

Just remembered: our docs site has jQuery on it too. That one is version 1.11.3

zoffixznet avatar Oct 03 '16 12:10 zoffixznet