Skip to content

Add CDN distribution via jsDelivr #3

@rmichaelthomas

Description

@rmichaelthomas

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:

  • Add "CDN" section to README with jsDelivr URL
  • Consider unpkg as alternative (https://unpkg.com/@atshare/selector)
  • Document version pinning best practices

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions