# How to include file on specific pages

**URL:** <https://community.hubspot.com/t/how-to-include-file-on-specific-pages/85283>\
**Category:** CMS Development\
**Tags:** enterprise\
**Created:** [July 13, 2023, 3:34pm UTC](https://community.hubspot.com/t/how-to-include-file-on-specific-pages/85283 "2023-07-13T15:34:51Z")\
**Posts on this page:** 2\
**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:** [July 13, 2023, 3:34pm UTC](https://community.hubspot.com/t/how-to-include-file-on-specific-pages/85283/1 "2023-07-13T15:34:51Z")

</div>

Hi, I have included file in my template using this code

`{{ require_js(get_asset_url("/Focus-child/templates/custom/js/custom.js"), { position: "footer", async: true }) }}`

but this code also runs in backend. I want this file to run code only on front end. Is there any code snippet to include this file only on front end and not on backend? thanks

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [July 14, 2023, 12:00am UTC](https://community.hubspot.com/t/how-to-include-file-on-specific-pages/85283/2 "2023-07-14T00:00:50Z")

</div>

Hi @RKhan33,

by backend you mean the page-builder, right?

If so - you can wrap the whole code in

```lia-code-sample
{% unless is_in_page_editor %}
YOUR CODE
{% endunless %}

```

you can read more about this in [the march 23 changelog post](https://developers.hubspot.com/changelog/march-2023-rollup)

best,

Anton
