What about services like npm that distribute code? Are these analogous or do they have additional security in place?
Some analysis of the 1M most popular sites on the web
11–20 of 130 posts
Re: Some analysis of the 1M most popular sites on the web
#12Re: Some analysis of the 1M most popular sites on the web
#13This is a red herring: this idea that the user will already have a cached copy of CDN-hosted jQuery is bogus. Even for a common library like jQuery: the number of versions of jQuery that are in use is likely above 50, and the number of popular CDNs that host jQuery is surely above 10. So we are hoping that the user will have a cached copy of that exact jQuery version from that exact CDN.
This is somewhat similar to the situation we have with operating systems: we created shared libraries to save disk space and memory. These days using them is pretty much pointless and incurs a performance penalty, yet everybody still uses them.
For JavaScript, a much better approach is to a) make code Google Closure-compatible, b) compile everything using advanced mode into a single JavaScript file. That way you get an optimized subset of all the code that the site actually uses (this works wonders for ClojureScript apps). Most sites probably use less than 10% of jQuery, so why include all of it?
Re: Some analysis of the 1M most popular sites on the web
#14Likely culprits are "performance analyzers" that grade a website and report an "F" (failing) grade for not using CDN-hosted common libraries. This is a red herring: this idea that the user will already have a cached copy of CDN-hosted jQuery is bogus. Even for a common library like jQuery: the number of versions of jQuery that are in use is likely above 50, and the number of popular CDNs that host jQuery is surely ab…
Re: Some analysis of the 1M most popular sites on the web
#15This is very interesting. Will you release the data and code at some point?
Yes, I will definitely release the code and the dataset required to bootstrap the rest. It takes a long long time to run and you'll need a good bit of bandwidth. I won't be releasing the raw data because there is simply too much of it.
[1] Amazon Public Data Sets, http://aws.amazon.com/public-data-sets/
[2] Google Public Data, http://www.google.com/publicdata/directory
Re: Some analysis of the 1M most popular sites on the web
#16Re: Some analysis of the 1M most popular sites on the web
#17Likely culprits are "performance analyzers" that grade a website and report an "F" (failing) grade for not using CDN-hosted common libraries. This is a red herring: this idea that the user will already have a cached copy of CDN-hosted jQuery is bogus. Even for a common library like jQuery: the number of versions of jQuery that are in use is likely above 50, and the number of popular CDNs that host jQuery is surely ab…
Re: Some analysis of the 1M most popular sites on the web
#18"If you have to use externally hosted resources such as javascript libraries then at a minimum you should verify regularly that the code has not changed "
No, you shouldn't. You should focus on stuff that matters to users, not existential internet security holes. Let someone else fix this problem for you, when it stops being existential.
By far the safest approach for website owners that care about their users and their users privacy is to simply not include anything at all from other people’s servers.
FTFY "A safe, but impractical and productivity-destroying aproach..."
Re: Some analysis of the 1M most popular sites on the web
#19Earlier quoted context omitted.
wow! i think there should be a place on the internet for publicly naming and shaming such practices. like a Darwin Award or Razzies [1] of webdev. [1] https://en.wikipedia.org/wiki/Golden_Raspberry_Awards
That's one of the things I'm considering right now. To re-write the top 1000 or so with annotations and then to sort them by category as well as an example of a site that is 'clean' in the same category. There are a ton of offenders and some of them are very well known. One of the interesting things you find when you look at this data is that the bigger sites really do have their stuff set up better (for instance, by…
i will live with cookies, but absolutely will not live with injected js behind https.
Re: Some analysis of the 1M most popular sites on the web
#20To be more specific: I have my Firefox configured to delete cookies on exit. Does that deal with "evercookies"? I must admit, never heard about them before...