CrUX is the Chrome UX Report from Google. This crash course will take you through everything you need to get the most out of the data.
https://developers.google.com/web/tools/chrome-user-experience-report/
from collections import defaultdict | |
import json | |
""" https://bigquery.cloud.google.com/savedquery/226352634162:ae7566b78dff4e8baf64aae5fdfa33c0 | |
SELECT | |
libs.name AS library, | |
INTEGER(FLOOR(pages.rank / 1000) * 1000) AS bucket, | |
COUNT(0) AS volume | |
FROM | |
(SELECT url, lib.name AS name FROM httparchive:scratchspace.2017_04_15_js_libs WHERE lib.name IN ('jQuery', 'Google Maps', 'Bootstrap', 'Modernizr', 'Polymer', 'Angular', 'AngularJS', 'React')) AS libs JOIN |
/* Generated by: | |
SELECT | |
SUBSTR(CONCAT('20', _TABLE_SUFFIX), 0, 10) AS date, | |
CASE | |
WHEN ENDS_WITH(_TABLE_SUFFIX, 'mobile') THEN 'mobile' | |
ELSE 'desktop' | |
END AS client | |
FROM | |
`httparchive.runs.20*` | |
WHERE |
// getHistogramQuery('bytesJS', '2017_05_15') | |
getHistogramQuery = (metric, date) => `SELECT | |
* | |
FROM | |
( | |
SELECT | |
'desktop' AS client, | |
volume, | |
bin, | |
pdf, |
$('#rsvp-list li').eq(Math.floor(Math.random()*149)+1).find('a').text() |
meetups = Array.from(document.querySelectorAll('.gridList-item')).map(i => { | |
name = i.querySelector('a span').innerText; | |
where = i.querySelector('span a').innerText; | |
members = parseInt(i.querySelector('.text--secondary').innerText.match(/([\d\,]+)/)[0].replace(',', '')); | |
return {name, members, where}; | |
}) |
var wappalyzer = getWappalyzer(); | |
function run() { | |
for (name in wappalyzer.apps) { | |
const app = wappalyzer.apps[name]; | |
app.name = name; | |
app.categories = app.cats.map(c => { | |
return wappalyzer.categories[c].name; | |
}); | |
app.implies = getImplications(app); |
https://www.slideshare.net/jrvis/the-state-of-performance-in-the-wordpress-ecosystem |
concat = q => q.split('\n').map(l => `"${l}"`).join('+\n'); | |
multi = q => q.split('\n').map(l => l.replace(/(^"|"\+$)/g, '')).join('\n'); |
<script type="application/ld+json"> | |
[ | |
{ | |
"@context": "http://schema.org/", | |
"@type": "Event" | |
}, | |
{ | |
"@context": "http://schema.org/", | |
"@type": "Recipe" | |
} |
CrUX is the Chrome UX Report from Google. This crash course will take you through everything you need to get the most out of the data.
https://developers.google.com/web/tools/chrome-user-experience-report/