# "Failed to load resource" when using components.html

**URL:** <https://discuss.streamlit.io/t/failed-to-load-resource-when-using-components-html/20628>\
**Category:** Using Streamlit\
**Created:** [January 5, 2022, 5:28am UTC](https://discuss.streamlit.io/t/failed-to-load-resource-when-using-components-html/20628 "2022-01-05T05:28:28Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![andfanilo](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/andfanilo/32/1040_2.png) [@andfanilo](https://discuss.streamlit.io/u/andfanilo)\
**Post date:** [January 5, 2022, 1:34pm UTC](https://discuss.streamlit.io/t/failed-to-load-resource-when-using-components-html/20628/4 "2022-01-05T13:34:49Z")

</div>

> [@somedood](#):
>
> I’m just refering to the scripts locally, like so:
> 
> ` <link href="assets/js/bootstrap.min.css" rel="stylesheet">`

For local resources, check out the following link for the static assets Streamlit can load from: [Restrict Download of Images & Videos on Streamlit App - #2 by andfanilo](https://discuss.streamlit.io/t/restrict-download-of-images-videos-on-streamlit-app/11718/2)

> [@somedood](#):
>
> The first link looks to be what I’m looking for though, I’ll give it a look!

Cool! It works well, I’ve used it a bit and I know another creator that loves this way of doing eheh 🙂 we can namedrop if you have issues with the non typescript way.

_Also you can absolutely do the reactless component in vanilla JS, no Typescript (rename to .js and remove any sign of types from the file), only the npm part will be required._

Have a nice day,  
Fanilo 🎈

---

_[View the full topic](https://discuss.streamlit.io/t/failed-to-load-resource-when-using-components-html/20628)._
