Foot-Gun Features to Avoid in jQuery
summary
jQuery 1.9 removes legacy APIs like $.browser and .live and provides the jQuery Migrate plugin for migration; using CDN “latest” breaks sites in production (78% of top 10,000 sites use jQuery). Avoid visible and hidden selectors and show/hide methods because they force synchronous layout (16ms frame example: 30ms vs 8ms), prefer classes and native properties or querySelectorAll. Never use global Ajax.setup defaults; wrap ajax calls with explicit options to avoid unexpected POST/json/timeouts.
AI-written summary · about
chapters (19)
- 0:00Intro
- 3:02The jQuery Ecosystem
- 5:27Can't jQuery Just Fix It?
- 9:46Features jQuery 1.9 Removed
- 15:33Performance
- 16:21Chrome's Yellow Triangle
- 17:03Let's Change to Use a Class Instead
- 19:54Detached Elements?
- 20:50Elements with Strange Display?
- 21:34Responsive Pages?
- 23:18What Does This Code Do?
- 26:41Avoiding Ajax Annihilation
- 28:11What Does This Do?
- 31:21The Better Way
- 32:01Avoid jQuery for Simple Things
- 33:18jQuery Custom Selectors - Extend the standard selectors
- 34:41jQuery Selector Equivalents
- 35:46Be Careful About Native Methods
- 36:31Questions?
related talks
46mSo you know jQuery. Now what?
28m"Migrating from jQuery - Core Journey to Vanilla JS"
19mState of jQuery - Part1 - jQuery Core
39mExterminating Common jQuery Bugs
34mThe jQuery Divide
09mState of jQuery - Part 2 - Sizzle
01h 01mjQuery Mobile: Building tools for a changing web
07mJohn Resig interviewed at Velocity 2011
