• Resolved adcapaust

    (@adcapaust)


    Hi Forminator team,

    I have paypal enabled on one of my contact forms, however have noticed that when its enabled, paypal script loads on every page even if that particular contact form is not present. This is resulting in slower page speeds which google identifies as a need to ‘reduce unused js’ See: https://imgur.com/vobbbxp

    Would it be possible, perhaps via php code, to ensure paypal only loads on the pages in which the contact form actually requires it?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @adcapaust

    I hope you’re well today!

    I just tested it an I can’t replicate the issue. On all my test sites (on different hosts) those PayPal scripts are only loaded for me on the page with the form but not on other pages – which is how it is supposed to work.

    Are you using any kind of asset (JS mainly) optimization tools/plugins on site (if yes, what is it)? Is there any cache active on site and/or server?

    Let us know, please.

    Kind regards,
    Adam

    Thread Starter adcapaust

    (@adcapaust)

    Hey Adam, thanks for the quick response….. you’ve helped me figure this out.

    I had embedded the form shortcode into a popup, and that popup was active site wide. I simply needed to only make it active on the required page.

    Really appreciate your help with this!

    Nino

    Thread Starter adcapaust

    (@adcapaust)

    Resolved ??

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @adcapaust

    That’s fantastic news and I’m glad I could help.

    Thank you also for letting us know what was the actual issue!

    Best regards,
    Adam

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PayPal script loading on every page’ is closed to new replies.