# Gravity forms w3c validation error. cannot resolve

**URL:** <https://community.gravityforms.com/t/gravity-forms-w3c-validation-error-cannot-resolve/16427>\
**Category:** Get Help\
**Tags:** w3c, conflict\
**Created:** [December 7, 2023, 10:57am UTC](https://community.gravityforms.com/t/gravity-forms-w3c-validation-error-cannot-resolve/16427 "2023-12-07T10:57:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![de-clunk-april](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@de-clunk-april](https://community.gravityforms.com/u/de-clunk-april)\
**Post date:** [December 7, 2023, 10:57am UTC](https://community.gravityforms.com/t/gravity-forms-w3c-validation-error-cannot-resolve/16427/1 "2023-12-07T10:57:46Z")

</div>

I am required to pass a site through the w3c markup validation and we are using gravity forms. It fails due to gravity forms injecting a SCRIPT after the HEAD opening tag.

This is bad as the meta charset is required in the first 1024 bytes of data and the script stops this happening.

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

it said it was resolved in 2.5, i have 2.7 and it is still happening. Shouldn’t gravity forms load that initial script further down in the head. The meta charset is supposed to be first.

we are using AJAX to submit the form and the form is included in a template file.

is there a solution to 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 6, 2024, 10:58am UTC](https://community.gravityforms.com/t/gravity-forms-w3c-validation-error-cannot-resolve/16427/2 "2024-01-06T10:58:13Z")

</div>

Closed on January 6, 2024, 10:58am UTC

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