• Resolved simon_a6

    (@simon_a6)


    We are getting notifications on our site that this plugin is adding header code with bad expiration dates on the homepage, and yet we don’t have the form on there.

    Is there a function or setting that means it only places the various code on the pages on which it is used?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author IQComputing

    (@iqcomputing)

    Hello,

    The plugin should be loading any scripts outside the pages that the [recaptcha] is present. We tested this with the 2020 theme and it worked as expected. Are these errors appearing in the JS console or on the server? Do you have a link to your website you could post?

    Thread Starter simon_a6

    (@simon_a6)

    When we run GT Metrix on the site, it warns about it on the services page.

    I thought the homepage didn’t have the form, but it does. However I have tested it on the services page, and the result is the same.

    Feel free to run the test on here: https://www.79design.org.uk/services/
    “Defer Parsing of Javascript” shows it there, yet it’s not used on that page.

    Plugin Author IQComputing

    (@iqcomputing)

    @simon_a6

    Thank you for linking your website. Viewing the page source of any of the pages it appears that there’s a hidden pop-up / modal window with a Contact Form 7 form in it. We’re not sure what would trigger this pop-up to open or why it’s there but it’s either part of the theme or part of an additional plugin. This is why the reCaptcha scripts appear on every page.

    You can install the Health Check & Troubleshooting plugin to safely disable all plugins ( except Contact Form 7 and this plugin ) along with reverting to a default theme to track down where the issue lies ( either with a specific plugin or theme. For more information on how this works we suggest reading the documentation.

    Hopefully the above information makes sense. Should you have any additional questions please let us know. Have a wonderful rest of your week!

    Thread Starter simon_a6

    (@simon_a6)

    Ah ok. The theme does allow for this popup, but we have it completely switched off. I’m wondering if it is always there anyway, but switching it on just “turns on CSS” to show it. Which is a bit of a pain.

    I went into the settings and although it was OFF, when I turned it on, there were two boxes checked. I’ve since turned off those two boxes and saved it. then turned off the overall option and saved that and cleared cache.

    Could you please retest for me to see if that code still remains?

    Simon

    Plugin Author IQComputing

    (@iqcomputing)

    @simon_a6

    It does appear that the code is still there and you are likely correct that the theme always displays this module and simply hides/shows the module with CSS when enabled. There’s nothing on our end we can do to prevent this. You could reach out to the original theme developers and they may consider your case. I don’t see any reason why they can’t show/hide the entire code block based on a theme option.

    Thread Starter simon_a6

    (@simon_a6)

    Thanks. We have requested this of them, though our support has expired.
    If you can think of any kind of function that might hide it, that would be great.

    Plugin Author IQComputing

    (@iqcomputing)

    @simon_a6

    Unfortunately, that’s out of the scope of our support here. Since this is a premium theme we do believe that the best course of action is to have their team update their themes functionality. We do wish you the best of luck. Since this is theme specific we’ll mark this thread as resolved but should you have any other questions or run into any further issues please reply back to this thread and we can assist you further. Have a wonderful rest of your week!

    Thread Starter simon_a6

    (@simon_a6)

    i just wanted to update this thread.
    the answer was right there – it was because the theme forces the contact form to still load.

    Because I wasn’t using it, I then change the form it was using to be one we do not use, enabled it. Saved it. Then disabled it and saved it. Then disabled the form Elements modal and saved it again.

    It’s ow gone from about 80% to 98% page speed!

    Quite happy to have forms on the FORM pages. Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Can the code show only on pages it is used?’ is closed to new replies.