Skip to content

Commit

Permalink
Add reference to unminified CDN distribution to the docs (#2460)
Browse files Browse the repository at this point in the history
fix #2457
  • Loading branch information
Renerick committed Apr 3, 2024
1 parent c247cae commit 8e26d12
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions www/content/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ and get going:
<script src="https://unpkg.com/htmx.org@1.9.11" integrity="sha384-0gxUXCCR8yv9FM2b+U3FDbsKthCI66oH5IA9fHppQq9DDMHuMauqq1ZHBpJxQ0J0" crossorigin="anonymous"></script>
```

Unminified version is also available

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

While the CDN approach is extremely simple, you may want to consider [not using CDNs in production](https://blog.wesleyac.com/posts/why-not-javascript-cdn).

### Download a copy
Expand Down

0 comments on commit 8e26d12

Please sign in to comment.