# what is https://js.hsleadflows.net/leadflows.js

**URL:** <https://community.hubspot.com/t/what-is-https-js-hsleadflows-net-leadflows-js/75219>\
**Category:** CMS Development\
**Tags:** starter\
**Created:** [February 14, 2023, 10:56pm UTC](https://community.hubspot.com/t/what-is-https-js-hsleadflows-net-leadflows-js/75219 "2023-02-14T22:56:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![simonp](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/simonp/32/60590_2.png) [@simonp](https://community.hubspot.com/u/simonp)\
**Post date:** [February 14, 2023, 10:56pm UTC](https://community.hubspot.com/t/what-is-https-js-hsleadflows-net-leadflows-js/75219/1 "2023-02-14T22:56:38Z")

</div>

What is [https://js.hsleadflows.net/leadflows.js](https://js.hsleadflows.net/leadflows.js) it add 500k to the site. Can it be used as defer script.

How do you remove it - reserching I can think leadflows is to with with pop ups

---

<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:** [February 15, 2023, 8:36pm UTC](https://community.hubspot.com/t/what-is-https-js-hsleadflows-net-leadflows-js/75219/2 "2023-02-15T20:36:11Z")

</div>

Hey, @simonp, Check out this post from our Community Champion @himanshurauthan for some thoughts on deferring these scripts — [Execute defer tag](https://community.hubspot.com/t5/CMS-Development/Disabling-javascript-causing-slow-page-load/m-p/756557/highlight/true#M32859).

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![simonp](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/simonp/32/60590_2.png) [@simonp](https://community.hubspot.com/u/simonp)\
**Post date:** [February 15, 2023, 10:21pm UTC](https://community.hubspot.com/t/what-is-https-js-hsleadflows-net-leadflows-js/75219/3 "2023-02-15T22:21:49Z")

</div>

Thanks Jaycee - fully onboard on the principle of defer and async js files, as Hubspot is a bit of beast, the leadflow script is being automatic created, just wondering how you can go about applying a defer status to the file

---

<div class="post-metadata">

**Author:** ![himanshurauthan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/himanshurauthan/32/53076_2.png) [@himanshurauthan](https://community.hubspot.com/u/himanshurauthan)\
**Post date:** [February 21, 2023, 7:04am UTC](https://community.hubspot.com/t/what-is-https-js-hsleadflows-net-leadflows-js/75219/4 "2023-02-21T07:04:55Z")

</div>

Hello @simonp  
Yes you are right, the script is loaded on Hubspot pages if

1. Use any chat options once, somewhere, it will load conversations.js on any HubSpot page.  
2. If you use a single pop-up form/lead flow once, somewhere, it will load leadflows.js on any HubSpot page.

You can modify the script tag to defer it, you can exactly use the hack from this blog post : [https://www.corewebvitals.io/pagespeed/defer-hubspot-forms.](https://www.corewebvitals.io/pagespeed/defer-hubspot-forms)

Thanks

---

<div class="post-metadata">

**Author:** ![simonp](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/simonp/32/60590_2.png) [@simonp](https://community.hubspot.com/u/simonp)\
**Post date:** [February 21, 2023, 7:14am UTC](https://community.hubspot.com/t/what-is-https-js-hsleadflows-net-leadflows-js/75219/5 "2023-02-21T07:14:30Z")

</div>

Brilliant many thanks
