jQuery Anti-Patterns for Performance and Compression 3.91 http://spkr8.com/t/1401

Description:

If you've seen the results from TaskSpeed, you know that the sexy syntactical sugar of jQuery comes with a few performance disadvantages. jQuery makes it quite easy for you to write some pretty inefficient code, so we'll discuss how to develop in a terse style but with the best possible performance.

We'll cover:

  • Why everything you've learned about the context argument is wrong.
  • Optimal code architecture approaches, e.g. Module Pattern, Constructors, Object Literal
  • Why your selectors in jQuery shouldn't match your ones in CSS
  • Where Sizzle doesn't optimize where you'd think it would
  • How to write jQuery plugins that are blazingly fast

In this session we'll also touch on how to prepare your code for a run through the YUI Compressor. Using real-world examples, we'll reduce the minified size of scripts by 50% using techniques that retain readability and maintainability.

Comments on this Talk

Avatar-missing-icon-04 sbujold, 12 Sep 06:24 PM

Too quick, did not see the real-world examples. Some of the content had jsut been covered by the previous talk

Stream.25365 akahn, 13 Sep 03:54 PM

Code at the bottom of the slides was difficult to read from the back row, even for a tall guy. Lots of good, reliable, real-world info.

Avatar-missing-icon-03 estherswhite, 13 Sep 04:03 PM

A lot of information to cover, would have been great if the presentation was about 15 minutes longer so Paul could slow down a bit.

Stream.18387 grahamb, 14 Sep 01:18 PM

Agreed on all the above points: could have been longer, slides were hard to read from the back of the room. Great info and presentation style.

Stream.26474 miketaylr, 14 Sep 02:13 PM

I enjoyed the pace, knowing that the slides would be available for me later at Paul's blog to digest. Fun talk.

Rmurphey-berlin-small Rebecca Murphey, 14 Sep 07:09 PM

This was a content-packed presentation that put together a lot of research in the form of best practices. That the content duplicated some of what was in the previous talk was no fault of the speaker's.

Slexaxtonavatar2 Alex Sexton, 15 Sep 11:21 PM

I thought this was some of the best information at the conference. A lot of the data that Paul collected for this talk was original and new. You could tell that he had done his research. Blame Microsoft for the projectors, not Paul.

Avatar-missing-icon-07 lukeb, 16 Sep 01:06 AM

The performance information given in this talk was some of the most useful information in the weekend.

Have an account? Sign in or register.

Leave a Comment

30 Ratings: 3.91

Delivery: 3.78

Content: 4.04

Last Five Ratings

Time & Location

September 12, 2009 — 12:00 PM
Microsoft Cambridge (Map It)