Skip to content

Commit

Permalink
demo: optimised HTMX loading
Browse files Browse the repository at this point in the history
  • Loading branch information
EwenQuim committed Feb 2, 2024
1 parent 5b7735b commit dfcadf3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/full-app-gourmet/templa/components/scripts.templ
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package components

templ Scripts() {
<script src="https://unpkg.com/htmx.org/dist/htmx.min.js"></script>
<script defer type="text/javascript" src="https://cdn.jsdelivr.net/npm/toastify-js"></script>
<script defer>
<script defer src="https://unpkg.com/htmx.org/dist/htmx.min.js">
htmx.on("htmx:sendError", function (evt) {
errormessage_on();
});
Expand Down

0 comments on commit dfcadf3

Please sign in to comment.