Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-6666

Ensure GravityForms scripts/styles are loaded only when a form in on page

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Should have Should have
    • 2.87.0
    • None
    • 3
    • Forms, Integrations
    • Sprint #182, Sprint #183, Sprint #184, Sprint #185, Sprint #186, Sprint #187, Sprint #188, Sprint #190, Sprint #191, Sprint #192
    • telesto

      GravityForms (and the Addons we use) may enqueue some styles and scripts by default even if there is no form block in the page.

      As an example, the Hubspot addon adds an analytics snippet to all pages by default (see screenshot).

      Our own GF styling from PLANET-6555 also needs to be enqueued only when a form is present on a page.

            fhernand Florent Hernandez (Inactive)
            nroussos Nikos Roussos
            Nikos Roussos Nikos Roussos
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: