# Code Profiler - GF loads on each page while there is no form on that page

**URL:** <https://community.gravityforms.com/t/code-profiler-gf-loads-on-each-page-while-there-is-no-form-on-that-page/14021>\
**Category:** Get Help\
**Tags:** ttfb, performance\
**Created:** [December 7, 2022, 3:57am UTC](https://community.gravityforms.com/t/code-profiler-gf-loads-on-each-page-while-there-is-no-form-on-that-page/14021 "2022-12-07T03:57:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MYEDGY](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@MYEDGY](https://community.gravityforms.com/u/MYEDGY)\
**Post date:** [December 7, 2022, 3:57am UTC](https://community.gravityforms.com/t/code-profiler-gf-loads-on-each-page-while-there-is-no-form-on-that-page/14021/1 "2022-12-07T03:57:48Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/f7319f7711d833af72daad8261bace10acc6710c.png)  
I’m debugging our website to gain speed and lower the TTFB.

With code profiler I’m stunned to witness that gravity forms seems to be heavy. The test page was the homepage… while there is no GF form there :s And I got the graph as output.

It’s only on our contact page. So how can I prefent GF from loading code on each page except where there are actually forms.

Thank you.  
If a snippet is available to put in the functions.php that would be helpful.

---

<div class="post-metadata">

**Author:** ![MYEDGY](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@MYEDGY](https://community.gravityforms.com/u/MYEDGY)\
**Post date:** [December 14, 2022, 11:40pm UTC](https://community.gravityforms.com/t/code-profiler-gf-loads-on-each-page-while-there-is-no-form-on-that-page/14021/2 "2022-12-14T23:40:12Z")

</div>

Hi Devs did you know this?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [January 13, 2023, 11:41pm UTC](https://community.gravityforms.com/t/code-profiler-gf-loads-on-each-page-while-there-is-no-form-on-that-page/14021/3 "2023-01-13T23:41:08Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
