Skip to content

Commit

Permalink
chore: generate README
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhulce committed Mar 14, 2019
1 parent 4575686 commit c9b2868
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# Third Party Web

Data on third party entities and their impact on the web.

This document is a summary of which third party scripts are most responsible for excessive JavaScript execution on the web today.

## Table of Contents

1. [Goals](#goals)
1. [Methodology](#methodology)
1. [NPM Module](#npm-module)
1. [Updates](#updates)
1. [Data](#data)
1. [Summary](#summary)
Expand Down Expand Up @@ -33,11 +36,28 @@ This document is a summary of which third party scripts are most responsible for
1. Identify the third party scripts on the web that have the greatest performance cost.
1. Give developers the information they need to make informed decisions about which third parties to include on their sites.
1. Incentivize responsible third party script behavior.
1. Make this information accessible and useful.

## Methodology

[HTTP Archive](https://httparchive.org/) is an inititiave that tracks how the web is built. Twice a month, ~4 million sites are crawled with [Lighthouse](https://github.com/GoogleChrome/lighthouse) on mobile. Lighthouse breaks down the total script execution time of each page and attributes the execution to a URL. Using [BigQuery](https://cloud.google.com/bigquery/), this project aggregates the script execution to the origin-level and assigns each origin to the responsible entity.

## NPM Module

The entity classification data is available as an NPM module.

```js
const { getEntity } = require("third-party-web");
const entity = getEntity("https://d36mpcpuzc4ztk.cloudfront.net/js/visitor.js");
console.log(entity);
// {
// "name": "Freshdesk",
// "homepage": "https://freshdesk.com/",
// "categories": ["customer-success"],
// "domains": ["d36mpcpuzc4ztk.cloudfront.net"]
// }
```

## Updates

## 2019-02-01 dataset
Expand Down

0 comments on commit c9b2868

Please sign in to comment.