• Resolved ayxaaron

    (@ayxaaron)


    Hi, I am trying delay javascript execution so that my page can run fast, however WP rocket has informed me that they have an issue with cleantalk. The response from WP rocket is below:

    After checking in multiple places and files, it appears that it’s the CleanTalk plugin itself the one setting up the exclusion in their end. To be specific, on their /wp-content/plugins/cleantalk-spam-protect/inc/cleantalk-public.php file: They created the apbct_rocket_delay_js_exclusions function to match all their scripts, as you can see here. And, they used WP Rocket’s rocket_delay_js_exclusions to add those exclusions, as you can see here. So, this is a CleanTalk plugin decision, posibly to avoid issues with their scripts. Unfortunately, from WP Rocket’s end, we won’t be able to change this. But if this script is heavily impacting the performance, you could reach out to the CleanTalk team, and ask them more information about their reasons behind this decision. You could tell them that WP Rocket is prepared, and when customers confirm issues, they can set the exclusion themselves, using the One-click exclusions box for the CleanTalk plugin.

    Is there a way to solve this issue?

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

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support sergecleantalk

    (@sergecleantalk)

    Hello,

    This script cannot be delayed, it’s needed for the protection to work. Please update the plugin to the latest version and disable the ‘Add a CleanTalk pixel to improve IP-detection’ option (WordPress Dashboard -> Settings -> Antispam by Cleantalk -> Advanced settings).

    https://cleantalk.org/help/update-wordpress

    Did it help?

    Thread Starter ayxaaron

    (@ayxaaron)

    The script seems to still be in place. What were the steps supposed to achieve?

    Please see the link (screenshot) below for the script that was excluded from delaying, directly in the code.
    https://drive.google.com/file/d/1ctxSzccYtEKSC3_qU4HfIOuWKou3hy6f/view?usp=sharing

    Plugin Support katereji

    (@katereji)

    Hello @ayxaaron.

    The script from your screenshot is not related to the Pixel option. The one from the screenshot is too important for the plugin work and can’t be delayed. That’s why we added it to the hard-coded exception.

    We would like to understand if you have a specific reason for removing our script exception. We have done a lot of work to ensure that our scripts do not affect the site’s performance, so if there are real problems with the script, please let us know, and we will do our best to solve them.

    Thread Starter ayxaaron

    (@ayxaaron)

    Is there a way for me to temporarily allow the JavaScript to be delayed so that I can see if it still works?

    Plugin Support katereji

    (@katereji)

    I have to ask our developers about it. I will create a task and write back as soon as we have an answer.

    Plugin Support katereji

    (@katereji)

    Hello @ayxaaron

    I have news for you. We can’t allow our JS script to be delayed. If we allow WPRocket to delay our bundle, the data collection will be incorrect and it may also lead to errors.

    May I ask again if our script is causing any performance issues on the website that you plan to solve this way?

    Plugin Support sergecleantalk

    (@sergecleantalk)

    Hello.
    We haven’t heard back from you in a few days, so I’m going to mark this topic as “resolved”.
    If you have any further questions, you can start a new topic or contact us via our private Ticket System: https://cleantalk.org/my/support/open.

    Thread Starter ayxaaron

    (@ayxaaron)

    I needed to delay loading the javascripts so that the pages can display the first bytes faster. Is it possible to give me an option to toggle it and try?

    Plugin Support sergecleantalk

    (@sergecleantalk)

    The plugin’s scripts don’t affect the TTFB directly. The TTFB mostly depends on web server configuration and the visitor’s internet speed connection. I’ve made some tests and found no performance issues with your website.

    Plugin Support sergecleantalk

    (@sergecleantalk)

    We decided to do more tests and investigate how we can optimize our scripts. We will let you know about the results.

    Plugin Support katereji

    (@katereji)

    Hello @ayxaaron

    We’ve taken another look at the case and can confirm that the current setup, where it’s not possible to delay our apbct-public-bundle.min.js, is the most optimal for how our plugin works with WP Rocket.

    Let us know if you experience any issues or need help with adjustments!

    We haven’t received your reply in a few days, so I’m going to mark this topic as “resolved”.
    If you have any further questions, you can start a new topic anytime.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Cleantalk is not working well with WP rocket’ is closed to new replies.