• Hey there!

    I got accused for GDPR violations in my website because the file jquery.mousewheel.min.js is loaded from cloudflare before the GDPR cookie consent popup.

    These are my suggestions to overcome this issue:
    Switch two lines 159 & 160 in file “profitmag/inc/profitmag-functions.php”:

    wp_enqueue_script( 'mousewheel', get_template_directory_uri() . '/js/jquery.mousewheel.min.js', array('jquery'), '2.0.19', true );
    wp_enqueue_script( 'mCustomScrollbar', get_template_directory_uri() . '/js/jquery.mCustomScrollbar.min.js', array('jquery'), '1.0.0', true );

    Reason: mCustomScrollbar checks if mousewheel is loaded. in the original case it is not loaded yet so it will be reloaded via CDN.

    so switching the two lines makes mousewheel load first so that the check in mCustomScrollbar does not cause a load via CDN.

    It would be fine if you could add this change to the next theme update.
    Regards
    Enno

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

  • The topic ‘GDPR & jquery.mousewheel.min.js’ is closed to new replies.