# \#gform\_main\_scripts\_loaded

**URL:** https://community.gravityforms.com/tag/gform-main-scripts-loaded/1296.md

[Latest](https://community.gravityforms.com/latest.md) · [Categories](https://community.gravityforms.com/categories.md) · [Tags](https://community.gravityforms.com/tags.md)

---

## [Gform\_main\_scripts\_loaded](https://community.gravityforms.com/t/gform-main-scripts-loaded/17796)

<div class="topic-metadata">

**Author:** [@jotsib](https://community.gravityforms.com/u/jotsib)\
**Replies:** 0\
**Last updated:** [July 3, 2024, 12:06pm UTC](https://community.gravityforms.com/t/gform-main-scripts-loaded/17796 "2024-07-03T12:06:38Z")

</div>

I am working on a customer’s website that has Gravity Forms installed. I came here to report that on his website, we are still getting the inline script for the “gform\_main\_scripts\_loaded” loaded on all pages. SImilar …

---

## [Remove unused GF script from header \[RESOLVED\]](https://community.gravityforms.com/t/remove-unused-gf-script-from-header-resolved/9937)

<div class="topic-metadata">

**Author:** [@mcmito](https://community.gravityforms.com/u/mcmito)\
**Replies:** 3\
**Last updated:** [July 13, 2021, 11:32am UTC](https://community.gravityforms.com/t/remove-unused-gf-script-from-header-resolved/9937 "2021-07-13T11:32:41Z")

</div>

Hi, I think GF 2.5 started adding a script to the very first line in the header that starts “if(!gform){document.addEventListener(“gform\_main\_scripts\_loaded”,function(){gform.scriptsLoaded…”. This script is placed on e…
