Faster jQuery With Category Theory

6.29.12

ob(C) is a set of objects

  • jquery returns {jquery}

hom(C) morphims

  • jqeury has methods $el.hide()

Functor - mapper between categories

Html -> jq

Then compose

running jquery functions on chains runs a loop on each method. If we could get access to just the functor on a single element, we can compose functions to run on a single element inside of a single loop.

jquery lazy proxy

his site