dsamarin / jquery-size

Collects data on the byte size of jQuery over time (incl. minified+gzip/zopfli)

Home Page:https://dsamarin.github.io/jquery-size/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jquery-size

This package uses the GitHub API to list the jQuery releases, downloads them using the jQuery CDN, and records their sizes into a CSV file.

image

Disclaimer: it’s not the file size, it’s how you use it. Sure, jQuery has gotten bigger over time, but every new release patches bugs and/or introduces new features. This [project] aims to demonstrate the importance of HTTP compression and minification.

Also note that jQuery 1.8 allows you to create custom builds containing only the modules you need, in case file size is an issue.

Mathias Bynens

Usage

jquery-size -csv "jquery-size-data.csv" -html "index.html"
$ jquery-size -h
  -csv string
        the file into which the size data is written in CSV format (or - for stdout)
  -ghtoken string
        optional GitHub personal API access token
  -h    prints this help text
  -html string
        the file into which the size data is written in HTML format (or - for stdout)

About

Collects data on the byte size of jQuery over time (incl. minified+gzip/zopfli)

https://dsamarin.github.io/jquery-size/index.html

License:MIT License


Languages

Language:HTML 87.9%Language:Go 12.1%