How do I fetch a partial inside the JS in the code below where it says “partial goes here”? The partial has HTML and Hugo syntax in it. I am using the code in single.html file
<button id="drop" class="drop">Toggle Comments</button>
<article class="comment" id="comment">
<!-- partial content goes here -->
</article>
<script type="text/javascript">
document.querySelector('#drop').addEventListener('click',
() => fetch('PARTIAL GOES HERE')
.then(res => res.text())
.then(data => document.querySelector('#comment').innerHTML = data))
</script>
(Is this really possible? Or it is a server-side thing?)