• Resolved Fernando Tellado

    (@fernandot)


    Hi again!

    I’ve read the recent changelog for the plugin (v. 4.5.4) and it indicates that you have introduced the delay of the script load.

    I’ve implemented in my site a hook action to optimize lity.css load, this one:

    add_action( 'gdpr_enqueue_lity_nojs', '__return_false' );
    add_action( 'gdpr_cc_prevent_ajax_script_inject', '__return_true' ); 

    Is this hook needed after this latest update? (v. 4.5.4)

    Thank you!

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

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

    (@mooveagency)

    Hi @fernandot

    You can test it by removing your hooks and using the new one below.

    In our latest version, you can find in the Help section ‘Delay script execution’ hook:

    add_filter( 'gdpr_init_script_delay', 'gdpr_delay_script_execution', 20, 1 );
    function gdpr_delay_script_execution( $ms ) {
      return 5000; // 5000 ms = 5 seconds.
    }

    Hope this helps.

    Thread Starter Fernando Tellado

    (@fernandot)

    I’ve seen that lity.css does not exists in your dist/scripts/ folder so I assume that is not necessary to optimize anything regarding it ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Script delay’ is closed to new replies.