@Vincent gave me an example here
You can do
<script src="https://unpkg.com/rdflib/dist/rdflib.min.js"></script>
<script>
window.rdflib = window.$rdf;
</script>
<script src="https://unpkg.com/tripledoc@2.4/umd/index.js"></script>
<script>
Tripledoc.fetchDocument("https://vincentt.inrupt.net/profile/card").then(
doc => console.log(doc))
</script>