raku.org
raku.org copied to clipboard
Upgrade to same version of jQuery on all of our sites
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)
Wouldn't a cdn hosted version help here?
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.
+1 to using the same jquery version everywhere, -1 to using a CDN. The privacy issues simply aren't worth it.
@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 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.
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
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.
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.)
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
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?
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.
Just remembered: our docs site has jQuery on it too. That one is version 1.11.3