thomasjbradley/signature-pad — Issue #15: avoid compiling JSON (and other tasks) depending on options
Author: jokeyrhyme
Created: 2011-11-10 00:28:01+00:00
State: open

I have a crazy large form, and I am currently noticing some latency.

I am currently trying to optimise my use of signaturePad to try and lower the latency.

My current options are:
drawOnly: true,
validateFields: false,
lineWidth: 0,
sig: '.signaturePad',
output: '',
sigNav: '',
name: '',
typed: '',
clear: '',
typeIt: '',
drawIt: '',
typeItDesc: '',
drawItDesc: ''

It would be terrific if signaturePad were programmed such that empty selectors (or some other flag) prevented certain tasks from being executed at all, for performance reasons.

For example, I have settings.output = '', so the JSON will never be recorded on the DOM. However, the JSON will still be created anyway. It would be awesome if values (etc) were only calculated if the settings suggested that the results were actually desired.