September 11th, 2009
Heyo, I'm Paul Irish.
I'm
a front-end developer,
a Google Chrome dev relations guy,
a jQuery Team member,
a lead developer of Modernizr, CSS3 Please and HTML5 Boilerplate,
a creator of mothereffingtextshadow, mothereffinghsl,
HTML5 Please,
Move the Web Forward,
W3Fools,
chromestatus.com,
HTML5 Readiness, Front-end Coding Standards, Type Rendering Project, Infinite-scroll.com, jQuery plugin stuff
, Middlefield Democrats
.
a host on the yayQuery Podcast,
and
an mp3 blogger at Aurgasm.
Pretty new to San Francisco.
Contact me or read more about me
Add +Paul Irish to your Google+ circles
These posts are the bees' knees
Categories
That's so book: my TMI lifestream.
Nice presentation dude. Great slides.
Wish I coulda been there to see it in person!
Big Loada!
Thanks for nice slides. Nice tip/trick on slide 36…in need of this right now. :)
too bad I couldn't be there :'(
@Pablo, Hah! thank you for getting the reference. :) Craig David and Squarepusher ref's on a talk about selectors is just.. a must do!
So in general my recommendation was to not use the context argument for any perf advantage, I only see it useful as a shorter way of writing $(this).find(…
But Yehuda Katz mentioned that it has a decent use in live() in jquery 1.3.3:
$("td", "table").live(…
will scope the delegation to existing tables
I have yet to do some performance testing on this. But this may be worth considering.
Paul, thanks for a fascinating presentation. I wish I could have heard you too. I'm just getting into jquery so it was illuminating. It brought back some of my best programmer's instinct. :)
…and I've picked up your RSS feed!
Great presentation Paul! My fav slide is #54 — All that expression'y goodness! :D
@Paul:
will not be scoped to tables, because the context of the resulting jQuery object is still the document. To change the context you have to pass an actual DOM node.
I think we're going to be seeing a lot of code like this when v1.4 hits the shelves:
Prestaul, you are 100% correct.
This definitely lends to some odd looking code, but yah right now that's the best way…
Very-very nice and usefull. I take couple of your recepies. Thank you.
This is a great presentation. Thanks!
Looks like the slides are down :(
Hi Paul,
On slide 31, you say: "a flatter DOM helps, so move to HTML5". Is there a particular reason that HTML5 will lead to a shallower DOM? Is it simply that HTML5s new features allow us to use less markup to achieve the same effect?
Thanks,
idb
@idbentley
Basically yup.
Here's the video for those interested – http://ontwik.com/javascript/jquery-anti-pattern-for-performance/
Good presentation – introduced me to document fragments.
I think the selector should come first in delegate (for your example in the slides)?
http://api.jquery.com/delegate/
@Brandon
Yes, you are right.
Doing this:
Classifies "li" asevents as indicated by Firebug, which does not make sense because "li" is a selector and "click" is the event type, not the other way around.
Great!! Squarepusher & jQuery, too sexy…
I know that this video is old, but I want to put one more nice and useful (for me at least) comment trick — switching between two blocks of code:
put an space (or delete the slash) and you have
P.S. This code highlighter doesn't work as expected, but the trick works.
Great tips !! I will certainly be using createDocumentFragment whenever possible.
Any relevant updates regarding the latest versions of jquery ?
wowwww……..Great….great great…..Background canvas drawing was excellent…
thanks…