putyourlightson / craft-sprig

A reactive Twig component framework for Craft CMS.
https://putyourlightson.com/plugins/sprig
MIT License
129 stars 9 forks source link

Consider switching script CDN from unpkg to jsdelivr #303

Closed dr-codswallop closed 1 year ago

dr-codswallop commented 1 year ago

Please provide a clear and concise description of your feature request, including:

bencroker commented 1 year ago

How exactly does switching from one CDN to another help solve the issue of stability? The unpkg CDN is powered by Cloudflare and is the official recommended CDN for loading htmx. My recommendation would be to self-host htmx (or use your CDN of choice) if this is a concern.

jimaek commented 1 year ago

In case of unpkg the downtime is not because of Cloudflare but because their origin goes down and most files are not in Cloudflare's cache. Its also completely unmaintained.

bencroker commented 1 year ago

If that's the case then I think it would be worthwhile convincing htmx to change its recommendation, as Sprig will follow suit. Feel free to loop me into a GitHub issue.

bencroker commented 1 year ago

I’ve decided to switch to hosting htmx locally, as the case is made for not using CDNs in production, in the upcoming release.

bencroker commented 1 year ago

Released in version 2.6.0.