> The fastest way to get going with htmx is to load it via a CDN HTMLX is great and all, but loading it from a CDN is insecure and wrought with problems. Namely, the JS file in question could be hijacked and replaced with a malicious version that can steal data. It's unlikely, but still a plausible scenario. Also: the resource could just 404 and not be available due to work-in-progress scenarios on the CDN side. I wo…
I haven't done much frontend dev work, but I thought that's what the integrity keyword is for:
And then it says in the docs right after:
> While the CDN approach is extremely simple, you may want to consider not using CDNs in production.
> The next easiest way to install htmx is to simply copy it into your project.
> Download htmx.min.js from unpkg.com and add it to the appropriate directory in your project and include it where necessary with a tag:
Someone else in the thread was asking about webpack. webpack. What has javascript done to people's expectations?