how can I load my stylesheets with loadCSS (https://github.com/filamentgroup/loadCSS)?
Currently I am including the javascript of loadCSS with a template tag like that into my head. I just surrounded my default css with the noscript tags as a fallback (As described in the documentation).
<head>
...
<noscript>
{% stylesheet "main" %}
</noscript>
...
<script>
{% include "components/loadCSS.js" %}
</script>
...
</head>
But how can I generate an output like that?
<link rel="preload" href="path/to/mystylesheet.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
Can I somehow get the links (within href) in my template?