bigskysoftware / htmx

</> htmx - high power tools for HTML
https://htmx.org
Other
35.13k stars 1.16k forks source link

Consider switching CDN instructions to jsdelivr #1388

Open dr-codswallop opened 1 year ago

dr-codswallop commented 1 year ago

Follow-on from issue raised on Sprig plugin for CraftCMS

Recently, multiple downtimes at the unpkg origin left a lot of sites unusable. Seems many now favor recommending jsdelivr rather than unpkg for improved stability and uptime.

For the quickstart instructions and simple use cases, would you consider switching CDN to jsdelivr as the preferred service instead.

Other plugins e.g the aforementioned Sprig for CraftCMS (which I am a heavy user of) would then follow suit.

bencroker commented 1 year ago

For the record, I’m all for hosting htmx (and Sprig) a more stable CDN. I haven’t done any thorough research, but jsDelivr at least claims to utilise multiple CDN providers: https://www.jsdelivr.com/unpkg

Fortunately, making the switch is as easy as replacing the base URL: https://cdn.jsdelivr.net/npm/htmx.org@1.9.0

Any thoughts on this @1cg?

bencroker commented 1 year ago

I’ve since realised that the installation instructions mention the case for not using CDNs in production, so this request is perhaps less important, but still seems relevant.