Faster jQuery With Category Theory
summary
Shows that exposing the DOM-manipulating core of jQuery methods and composing them into a single pass reduces loops and gives measurable wins — roughly 5–10% on a removeAttribute example and similar gains in a jQuery Mobile helper. Implements a compose function that composes underlying DOM functions, a map-based functor that maps DOM→jQuery methods, and a small library that emits a proxy warning when chains can be squashed. Works in small examples; needs more real‑world testing and careful partial application.
AI-written summary · about
chapters (14)
- 0:00Intro
- 2:00Motivation
- 4:03The Problem
- 6:32Two Problems
- 7:17Not Always Obvious
- 8:52Overview
- 10:09Category Theory
- 11:13Category Laws
- 13:21Category HTML
- 15:18Why is it so simple
- 16:09The objects of jQuery
- 19:07The functor
- 24:54Why this matters
- 29:54Proxy








