Open benpate opened 3 years ago
I'm using HTMX for the first time, and I've observed that both inline styles and stylesheets in the HTML fragment are parsed as long as the <link>
tag isn't the first tag in the fragment. When the <link>
tag is first, no styles are parsed. When I start the fragment with even an empty tag like <span></span>
or <script></script>
, then styles are parsed.
Currently, htmx parses
<script>
tags in a dynamically loaded HTML fragment, but it does not do the same for stylesheets. It would be great if we could make this work:index.html
dynamic.html