Before touching production jQuery, run a lightweight checklist—operators trust predictable diffs more than clever one-liners.
Pre-merge checklist
- Grep — find other handlers on the same selector
- Script order — confirm jQuery loads before plugins
- Smoke test — submit forms, sort tables, open modals
- Rollback — feature flag or revert path documented
Code review focus
Watch for nested .html(serverResponse), duplicate .on('click') without namespaces, and Ajax without error UI.
Documentation
Leave a one-line comment only when business rules are non-obvious—future you maintains this at 2 a.m.
Self-check
- Which three flows would you smoke test for your app?
- How do you verify no double-bound events?
Challenge
Pre-deploy check
- Run default code.
- Terminal lists three checklist items.
Done when: terminal prints checklist array length 3.