This attribute defines a different read endpoint from the POST endpoint defined above. This can be useful when you don’t need to personalize the form definition on a per-supporter basis and anticipate an extremely high load scenario. One could call an external cached version of the response, either from a CDN, or even flat file store like Amazon S3.
- Default: value of
data-endpoint
attribute.
Example, to read the form definition from Amazon S3 instead of the EveryAction API servers:
<div class="ngp-form" data-id="12345" data-formdef-endpoint="https://formdefs.s3.amazonaws.com/api.myngp.com"></div>