gregwolanski / eleventy-tailwindcss-alpinejs-starter

As little code as possible. Learn more: https://css-tricks.com/eleventy-starter-with-tailwind-css-alpine-js/
MIT License
233 stars 39 forks source link

Add defer to alpine's script tag #9

Closed seanryanuk closed 3 years ago

seanryanuk commented 3 years ago

This PR simply adds the missing defer property from the script tag to get rid of the following warning from AlpineJS:

image

I found this in a CSS Tricks article, and found it super useful. Didn't know how to give back, so here's a tiny bit of housekeeping in thanks! Also, my first PR on Github, so apologies if it's not standard!

gregwolanski commented 3 years ago

Thank you, Sean! : )