jQuery's "Kill Hitler" Features
summary
jQuery is minified to under 30KB gzipped but pages average 1.8MB and ~100 requests, with JS ~300KB; hidden/visible selectors force costly style recalculations and cause reflow jank, so prefer class toggles; throttle scroll/mousemove work with requestAnimationFrame to batch updates; global $.ajaxSetup creates hard-to-find cross‑request bugs—use local wrappers or events instead; avoid user agent sniffing (deprecated $.browser), use Modernizr/feature detection; parseHTML reduces accidental script execution; new slim AJAX API and dropped IE6/7 support aim to simplify and shrink jQuery further.
AI-written summary · about
