Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDN version of the non-minified HTMX code, please? #2457

Closed
hrstoyanov opened this issue Apr 3, 2024 · 10 comments · Fixed by #2460
Closed

CDN version of the non-minified HTMX code, please? #2457

hrstoyanov opened this issue Apr 3, 2024 · 10 comments · Fixed by #2460

Comments

@hrstoyanov
Copy link

In the absence of non-minified HTMX in unpkg.com, I am forced to point to the GitHub.com file, which is not the best option.

@Renerick
Copy link
Collaborator

Renerick commented Apr 3, 2024

It's available at https://unpkg.com/htmx.org@1.9.11/dist/htmx.js

@Renerick Renerick closed this as completed Apr 3, 2024
@hrstoyanov
Copy link
Author

I must have missed that in the docs? Where was it mentioned?

@Renerick
Copy link
Collaborator

Renerick commented Apr 3, 2024

tbf, this one's on us, I don't believe this was explicitly mentioned

@Renerick
Copy link
Collaborator

Renerick commented Apr 3, 2024

image
Fixed

@hrstoyanov
Copy link
Author

Can you, please add SRI hashes - not a biggie, but all users would have to do it manually otherwise. I, for example, use https://www.srihash.org/ and got this:

<script src="https://unpkg.com/htmx.org@1.9.11/dist/htmx.js" integrity="sha384-l9bYT9SL4CAW0Hl7pAOpfRc18mys1b0wK4U8UtGnWOxPVbVMgrOdB+jyz/WY8Jue" crossorigin="anonymous"></script>

@Renerick
Copy link
Collaborator

Renerick commented Apr 3, 2024

This is the exact snippet used in the updated docs, you can see integrity= on the screenshot

@hrstoyanov
Copy link
Author

oh, sorry i did not look at the screenshot ... thank you!

@hrstoyanov
Copy link
Author

@Renerick
Similar to the above, what would be the url for non-minified HYPERSCRIPT?
Could not find anything in the docs, so tried this one:

https://unpkg.com/hyperscript.org@0.9.12/dist/hyperscript.js

This did not work!

@Renerick
Copy link
Collaborator

https://unpkg.com/hyperscript.org@0.9.12/dist/_hyperscript.js

Also, on unpkg you can open package explorer to see what files are available in the distribution

https://unpkg.com/browse/hyperscript.org@0.9.12/

@hrstoyanov
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants