thomasjbradley/signature-pad — Issue #16: cache jQuery selectors for performance
Author: jokeyrhyme
Created: 2011-11-10 00:32:25+00:00
State: open

Unnecessary execution of jQuery selectors can be avoided by running them all once during initialisation and merely using the cached results.

This is already being performed for the "canvas" selector. It would be terrific if all the other selectors were also cached.

I admit, however, that this may break code that requires the selectors to be executed over and over again, such as pages that insert content post-initialisation that needs to be used by signaturePad. I would suggest, however, that these use cases are probably sub-optimal themselves.