Open 31z4 opened 11 months ago
Distribute the widget via a CDN so that user can choose between vendoring the widget and loading it using a CDN.
<script src="https://cdn.fission.codes/fund-ring-widget.js"></script> <fund-ring-widget contractAddress="<CONTRACT_ADDRESS>" title="Help fund <PROJECT_NAME>!" description="A brief description" />
Both vendoring and loading via a CDN has its pros and cons. But having an option to load the widget using CDN might simplify setup.
Summary
Distribute the widget via a CDN so that user can choose between vendoring the widget and loading it using a CDN.
Basic example
Motivation
Both vendoring and loading via a CDN has its pros and cons. But having an option to load the widget using CDN might simplify setup.