Exterminating Common jQuery Bugs
- Day 1
- Speakers: Elijah Manor
- 22,826 Views
- 11 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
jQuery is so easy to use and thankfully abstracts many of the cross-browser concerns we used to labor over years ago. However, as with any library there are a common set of bugs that tend to crop up the more you use it. This session aims to help equip developers with the appropriate knowledge and tools to exterminate many common bugs seen in jQuery code. For each topic that is covered we will start with a piece of code that has a jQuery bug, then identify what the bug is, explain why it is happening, and then proceed to explore various techniques to exterminate the bug. Some bugs have a simple fix, whereas other bugs have numerous ways you could look at solving the problem. These solutions can range from simple to advanced concepts. By exterminating bugs in multiple ways it will help expose some of the newer and more advanced features of jQuery that aren't as widely known. Some of the bugs that we will address involve dealing with synchronous and asynchronous code, uncovering some possibly confusing aspects of the $.each method, explaining why and how you might have killed event delegation, looking into weird formatting issues when dealing with JSON and object literals, discussing the confusion of the jQuery wrapper versus the native DOM element, explaining the difference between commonly confused jQuery methods, uncovering why some animations have a mind of their own, determining when several ajax calls have finished, and much more. As you might have noticed some of the examples listed above aren't necessarily jQuery specific, but since the library is JavaScript there are many core concepts of JavaScript that are necessary to understand when using jQuery.
Already have a Channel 9 account? Please sign in
Follow the Discussion
Thanks Elijah.
Nice session - there are quite a few tips and tricks in there for everyone.
Great stuff as always!
Excellent video covering some common JQuery gotchas. A great watch!
Enjoyed it!
if you're not using "on", you're actually using "on"
Outstanding presentation, Elijah. Thank you.
@Islamath:Yeah, with the rewrite of the event module all of the event methods are currently one line pass throughs to the new .on() method
I'm glad you enjoyed the talk. Thanks for stopping by
@MehdiKhalili @jcreamer898 @pawood @Rhysling:Thanks for taking the time to watch the presentation. I hope you learned a couple of things that you didn't already know. You can find the slides to the talk hosted on my github account http://bit.ly/find-jquery-bugs-slides
Good, helpful talk. Enjoyed it, thanks.
Hi Elijah,
As always delivering great content to improve our work as web developers, cleaning my bugs now and I applied some of your tips to my current project. Awesome
Thank you
Thanks Elijah,
I enjoyed your presentation and all the tips you provided. Well done!
Great presentation. I found this a lot more helpful than the demos that cover simple basics. Builds on the whole "you learn more from failures" idea.
Remove this comment
Remove this thread
close