Once adoption grows, add documentation for CDN-hosted distribution. jsDelivr already works automatically since the package is on npm:
<script src="https://cdn.jsdelivr.net/npm/@atshare/selector@1/dist/atshare-selector.js"></script>
Why wait:
- Self-hosting from atshare.social is fine during active development
- Simpler debugging with one source of truth
- No CDN propagation delays when iterating
When to revisit:
- Third-party sites start embedding the selector
- Need to reduce origin server load
- Want automatic semver in URLs (
@^1, @1.0.0)
Action items:
Once adoption grows, add documentation for CDN-hosted distribution. jsDelivr already works automatically since the package is on npm:
Why wait:
When to revisit:
@^1,@1.0.0)Action items:
https://unpkg.com/@atshare/selector)