# require\_js not including file

**URL:** <https://community.hubspot.com/t/require-js-not-including-file/89337>\
**Category:** CMS Development\
**Tags:** starter\
**Created:** [September 11, 2023, 9:12am UTC](https://community.hubspot.com/t/require-js-not-including-file/89337 "2023-09-11T09:12:38Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![RKhan33](https://avatars.discourse-cdn.com/v4/letter/r/c2a13f/32.png) [@RKhan33](https://community.hubspot.com/u/RKhan33)\
**Post date:** [September 11, 2023, 9:12am UTC](https://community.hubspot.com/t/require-js-not-including-file/89337/1 "2023-09-11T09:12:38Z")

</div>

I have used the below code to include js file

{{ require\_js(get\_asset\_url(“../../js/jquery.fullPage.js”)) }}

This code is added in child theme and am not getting any error.

but I am not getting the expected result also. In source code, I am unable to see this file. not sure we can check in source code in hubspot of not? am new comer here. thanks

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [September 12, 2023, 9:06pm UTC](https://community.hubspot.com/t/require-js-not-including-file/89337/2 "2023-09-12T21:06:32Z")

</div>

Hi, @RKhan33 👋 Thanks for your question.

I’d like to invite some community members to share some troubleshooting tips – hey [@Phil\_Vallender](https://community.hubspot.com/t5/user/viewprofilepage/user-id/74) @Sjardo [@weiliang\_lee](https://community.hubspot.com/t5/user/viewprofilepage/user-id/155264), can you share any tips with a new HubSpot dev?

Thanks for taking a look! — Jaycee

---

<div class="post-metadata">

**Author:** ![Sjardo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sjardo/32/52178_2.png) [@Sjardo](https://community.hubspot.com/u/Sjardo)\
**Post date:** [September 13, 2023, 6:30am UTC](https://community.hubspot.com/t/require-js-not-including-file/89337/3 "2023-09-13T06:30:25Z")

</div>

I think that the file you instert that line into, is not being loaded by the main theme. This could happen to some files that are not overwritable by the child-theme.  
Can you verify that? Little trick is simply adding some plain HTML and see if that is visible on the site.

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [September 29, 2023, 9:17pm UTC](https://community.hubspot.com/t/require-js-not-including-file/89337/4 "2023-09-29T21:17:51Z")

</div>

Thanks for the troubleshooting tip, @Sjardo 🙌 — Jaycee

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [September 15, 2023, 8:54pm UTC](https://community.hubspot.com/t/require-js-not-including-file/89337/5 "2023-09-15T20:54:59Z")

</div>

Where are you adding this?

to the base.html for the child theme? or to the child.js? or somewhere else?

---

<div class="post-metadata">

**Author:** ![RKhan33](https://avatars.discourse-cdn.com/v4/letter/r/c2a13f/32.png) [@RKhan33](https://community.hubspot.com/u/RKhan33)\
**Post date:** [September 16, 2023, 2:43am UTC](https://community.hubspot.com/t/require-js-not-including-file/89337/6 "2023-09-16T02:43:46Z")

</div>

Hi, am adding in base.html to child theme  
Get Outlook for Android\<\>

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [September 17, 2023, 1:54pm UTC](https://community.hubspot.com/t/require-js-not-including-file/89337/7 "2023-09-17T13:54:48Z")

</div>

Thanks for confirming @RKhan33 - are there any warnings or errors in the Design Manager console for the base.html?

---

<div class="post-metadata">

**Author:** ![RKhan33](https://avatars.discourse-cdn.com/v4/letter/r/c2a13f/32.png) [@RKhan33](https://community.hubspot.com/u/RKhan33)\
**Post date:** [September 17, 2023, 4:18pm UTC](https://community.hubspot.com/t/require-js-not-including-file/89337/8 "2023-09-17T16:18:46Z")

</div>

There is no warning/error  
Get Outlook for Android\<\>

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [September 17, 2023, 10:59pm UTC](https://community.hubspot.com/t/require-js-not-including-file/89337/9 "2023-09-17T22:59:47Z")

</div>

@RKhan33 can you share a URL to the page where you’re expecting the code to load?
