# 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:** 1\
**Showing post:** 2

<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)

---

_[View the full topic](https://community.hubspot.com/t/disabling-javascript-causing-slow-page-load/75214)._
