~/talk

Foot-Gun Features to Avoid in jQuery

Talkat FITC Web Unleashed 2014 · 2014-09-17..09-18· [javascript, testing]
slides:none on file

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

  1. 0:00Intro
  2. 3:02The jQuery Ecosystem
  3. 5:27Can't jQuery Just Fix It?
  4. 9:46Features jQuery 1.9 Removed
  5. 15:33Performance
  6. 16:21Chrome's Yellow Triangle
  7. 17:03Let's Change to Use a Class Instead
  8. 19:54Detached Elements?
  9. 20:50Elements with Strange Display?
  10. 21:34Responsive Pages?
  11. 23:18What Does This Code Do?
  12. 26:41Avoiding Ajax Annihilation
  13. 28:11What Does This Do?
  14. 31:21The Better Way
  15. 32:01Avoid jQuery for Simple Things
  16. 33:18jQuery Custom Selectors - Extend the standard selectors
  17. 34:41jQuery Selector Equivalents
  18. 35:46Be Careful About Native Methods
  19. 36:31Questions?
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.