# Load html and js with http4s

**URL:** <https://softwaremill.community/t/load-html-and-js-with-http4s/329>\
**Category:** General\
**Created:** [November 27, 2023, 1:01am UTC](https://softwaremill.community/t/load-html-and-js-with-http4s/329 "2023-11-27T01:01:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elyphas](https://dub1.discourse-cdn.com/flex005/user_avatar/softwaremill.community/elyphas/32/208_2.png) [@elyphas](https://softwaremill.community/u/elyphas)\
**Post date:** [November 27, 2023, 1:01am UTC](https://softwaremill.community/t/load-html-and-js-with-http4s/329/1 "2023-11-27T01:01:44Z")

</div>

How can I load my statics files such index.html and app.js

do I need to add a dependency to http4s in my build.sbt  
or there is a way to load with tapir ?

---

<div class="post-metadata">

**Author:** ![adamw](https://dub1.discourse-cdn.com/flex005/user_avatar/softwaremill.community/adamw/32/28_2.png) [@adamw](https://softwaremill.community/u/adamw)\
**Post date:** [November 27, 2023, 9:31am UTC](https://softwaremill.community/t/load-html-and-js-with-http4s/329/2 "2023-11-27T09:31:26Z")

</div>

You can serve static content using tapir, see: [Serving static content — tapir 1.x documentation](https://tapir.softwaremill.com/en/latest/endpoint/static.html)

However, you’ll need to add the files to serve as resources to your application, so that might involve changing `build.sbt`
