Skip to content

Instantly share code, notes, and snippets.

@tjvantoll
Last active January 28, 2017 13:17
Show Gist options
  • Save tjvantoll/dca4d823c7a705c06187 to your computer and use it in GitHub Desktop.
Save tjvantoll/dca4d823c7a705c06187 to your computer and use it in GitHub Desktop.

File sizes of the web components' polyfills and Polymer

Version size (minified) size (minified & gzipped)
0.4.2 webcomponents.js 127KB 37KB
0.5.5 webcomponents.js 99KB 28KB
webcomponents-lite.js 28KB 8.8KB
0.6.0 webcomponents.js 108KB 31KB
webcomponents-lite.js 35KB 11KB
0.4.2 polymer.js 110KB 33KB
0.5.5 polymer.js 121KB 36KB
0.8.0 (rc2) polymer.html* 87KB 23KB

* Generated with Vulcanize and the --strip option

As of Polymer 0.8 using webcompoments-lite.js is the recommended approach, which means that your total payload with the latest versions becomes ~34KB of gzipped content. That includes Polymer and all web components polyfills. For comparison jQuery 2.1.x is ~28KB gzipped and Angular 1.3.x is ~49KB. Nice work Polymer team!

@AlokBansal8
Copy link

If I have to build a new website with lots of google maps and layers above it. What would you say polymer or react or both?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment