If you do a HTTP request in Javascript using any of the available APIs (fetch, XHR), it would automatically use HTTP/3 for those requests if the peer is known to understand HTTP/3. No special APIs are needed unless the protocol you care about is on top of QUIC but not actually using HTTP/3. As the sibling comment mentions, WebTransport might help with non-HTTP use-cases.