# Init() and loader for javascript snippet

**URL:** <https://community.feathery.io/t/init-and-loader-for-javascript-snippet/900>\
**Category:** Support\
**Created:** [July 16, 2024, 4:52pm UTC](https://community.feathery.io/t/init-and-loader-for-javascript-snippet/900 "2024-07-16T16:52:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![max](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@max](https://community.feathery.io/u/max)\
**Post date:** [July 16, 2024, 4:52pm UTC](https://community.feathery.io/t/init-and-loader-for-javascript-snippet/900/1 "2024-07-16T16:52:16Z")

</div>

Hello,

I have my feathery form embedded in Webflow on a subpage. How can I initialize the form already, when the homepage is loaded? I found a documentation for the react embed, but not for javascript.

Same for the loader. As long as the form gets loaded, I want to display a loader and also for the container to dislay already full height. How do I adjust the javascript code snippet?

Thanks for helping.

---

<div class="post-metadata">

**Author:** ![eri](https://avatars.discourse-cdn.com/v4/letter/e/8baadc/32.png) [@eri](https://community.feathery.io/u/eri)\
**Post date:** [July 17, 2024, 12:30am UTC](https://community.feathery.io/t/init-and-loader-for-javascript-snippet/900/2 "2024-07-17T00:30:49Z")

</div>

The same components listed under React in the documentations can be used in javascript (initialization of values: `initialValues` )

Form Components: [\<Form\> | Feathery Docs](https://docs.feathery.io/develop/react/api-guide/form)  
Loader: [initialLoader | Feathery Docs](https://docs.feathery.io/develop/react/api-guide/form/initialloader#initialloader-properties)
