• Resolved Jairo Ochoa

    (@jairoochoa)


    Hi,

    I hosted a site in Sitegrond ans they told me this:

    If you load the home page of the site and open the network tab you will arrange the request by loading time. The longest loading request is admin-ajax and its action is moove_gdpr_get_scripts:

    https://ibb.co/X8kj0ph

    Would you suggest something to fix it ?

    Thanks a lot.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Moove Agency

    (@mooveagency)

    Hi @jairoochoa,

    Thanks for using our plugins.

    We have improved the script injection feature by adding a secondary method.
    You can enable the static script injection feature by adding the following code snippet to your functions.php

    add_action( 'gdpr_cc_prevent_ajax_script_inject', '__return_true' );

    Hope this helps.

    Thread Starter Jairo Ochoa

    (@jairoochoa)

    Hi @mooveagency

    Thanks a lot for the snippet.

    Regards

    froughtz

    (@froughtz)

    @mooveagency Shouldn’t be this feature an option in the addon so there would be no need to add code into the theme as it improves performance? I hope you add the secondary method as an option inside the plugin in the next version.

    Plugin Author Moove Agency

    (@mooveagency)

    Hi @froughtz,

    Thanks for your suggestion, the static method could improve the performance, but some of the hooks were blocked due to caching. So the static script inject is useful for users using the GDPR Cookie Compliance settings, but not for complex implementations where the hooks are used to extend the scripts in different conditions.

    Also, the AJAX script inject is working fine, only in some cases could cause performance issues.

    Hope this makes sense.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘moove_gdpr_get_scripts and loading time’ is closed to new replies.