ideal-for-low-bandwidth



ideal-for-low-bandwidth

0 0


ideal-for-low-bandwidth

jQuery Conference San Diego Feb 2014

On Github timmywil / ideal-for-low-bandwidth

jQuery: Now Ideal For Low Bandwidth

Timmy Willison

@timmywil

About Me

  • jQuery core team member
  • Sizzle survivor
  • OpenTable employee
  • Whovian

You Might Not Need This Talk

Sure, jQuery has gotten bigger over time, but every new release patches bugs and/or introduces new features. [The jQuery File Size page] aims to demonstrate the importance of HTTP compression and minification.

- Mathias Bynens

How Big Is jQuery?

jQuery Version Size (gzip) 1.4.4 27.1kb 1.5.2 29.9kb 1.7.2 33.6kb 1.9.1 32.8kb 1.10.2 32.8kb 1.11.0 33.3kb 2.1.0 29.3kb

jQuery's Size

Asset Sizes

4 billion websites

Type Average Size (kb) HTML 376.67 Images 205.99 Scripts 57.98

https://developers.google.com/speed/articles/web-metrics

I'm So Organized!

Include What You Need

Files Are Modules

Demo Time

It's just AMD

Include jQuery modules directly.

define([
  "jquery/deferred"
], function( jQuery ) {
  var defer = jQuery.Deferred();
});

Chrome DevTools

Custom Builds

  • Streamline Packages
  • Use Only What You Need

Future Fragmentation

  • Individual Core Methods
  • Alternative Implemenations

References

"Tools Not Rules"

- Paul Lewis

You Might Not Need Rules