# Disabling javascript causing slow page load

**URL:** <https://community.hubspot.com/t/disabling-javascript-causing-slow-page-load/75214>\
**Category:** CMS Development\
**Tags:** javascript, html\
**Created:** [February 14, 2023, 9:55pm UTC](https://community.hubspot.com/t/disabling-javascript-causing-slow-page-load/75214 "2023-02-14T21:55:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaxAllen](https://avatars.discourse-cdn.com/v4/letter/m/db5fbb/32.png) [@MaxAllen](https://community.hubspot.com/u/MaxAllen)\
**Post date:** [February 14, 2023, 9:55pm UTC](https://community.hubspot.com/t/disabling-javascript-causing-slow-page-load/75214/1 "2023-02-14T21:55:34Z")

</div>

Hi guys,

I have a landing page that is loading increadibly slow. The rot cause seems to be a javascript file “tracker.js”.

Is there a way to disable this using the additianal code snippets in the page settings?

Thanks!

---

<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 15, 2023, 11:53am UTC](https://community.hubspot.com/t/disabling-javascript-causing-slow-page-load/75214/2 "2023-02-15T11:53:07Z")

</div>

Hello @MaxAllen

You can add defer tag to execute the script after the HTML has finished parsing instead of javascript blocking the parsing.  
\<script src=“myfile1.js” defer\>\</script\>  
Here’s a reference to how to defer would work :[\<script\> HTML script element - HTML | MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#attr-defer)
