Skip to content

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

License

Notifications You must be signed in to change notification settings

dsamarin/jquery-size

Repository files navigation

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)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published