Forms loading on every page (large script payload)

If you notice that all Powerful Contact Form Builder are being loaded in the page source on every page, this is expected behavior when the app embed is enabled in your Shopify theme.

However, for stores with many forms (for example, franchise or location-based sites), this may feel unnecessary and can impact performance.

This guide explains why this happens and how to load forms only on the pages where they’re needed.

💡 Why this happens

When the app embed of Powerful Contact Form Builder is enabled:

  • The app script is injected into the <head> of every page

  • This script includes references to all forms created in the app

  • This ensures forms work anywhere on the store without extra setup

For stores with many forms (e.g. 50–100+), this can result in:

  • Larger page payloads

  • Unused scripts on pages that don’t contain forms


To load forms only on specific pages, we recommend:

  1. Disable the app embed

  2. Display forms manually using Shortcode or blocks

This ensures:

  • Forms load only where they are displayed

  • No unnecessary scripts are added to other pages


⚙️ Step 1: Disable the app embed

Disable the app embed to prevent scripts from loading globally.

👉 Follow this guide: How to remove/uninstall the app from a theme

Once disabled:

  • The app script will no longer load on every page

  • Forms will only appear where you explicitly add them


⚙️ Step 2: Add the form only where needed

After disabling the embed, display forms only on specific pages.

Option 1: Embed using Shortcode

Use the shortcode method to insert a form directly into a page’s content.

👉 Guide: Embed the form using Shortcode

Best for:

  • Location-specific pages

  • Franchise pages

  • Landing pages

  • Pages with unique forms


Option 2: Add the form using a block

You can also add the form using a theme block, depending on your theme setup.

This also ensures the form loads only on that page.

👉 Guide: Add form with app block


📌 Example use case

Franchise website with 90+ location pages

  • Each location page has its own form

  • App embed enabled → all 90+ forms load on every page ❌

  • App embed disabled + shortcode per page → only the correct form loads.


Need More Help?

If you still need assistance, please contact us at [email protected]. Our team will be happy to help you resolve any issues or guide you further.

Last updated