• Resolved vandung93

    (@vandung93)


    Hello @team

    Please improvement page loading performance with enqueue styles & scripts when used:

    For eg:

    1. These styles & scripts should be enqueue only on Dashboard => Settings: (and only for Instructor role)

    wp_enqueue_script('tutor-instructor-signature-js', tutor_pro()->url . 'addons/tutor-certificate/assets/js/instructor-signature.js');
     wp_enqueue_style('tutor-instructor-signature-css', tutor_pro()->url . 'addons/tutor-certificate/assets/css/instructor-signature.css');

    2. These styles & scripts should be enqueue only on Create Course:

    wp_enqueue_style('tutor-pro-certificate-field-css', TUTOR_CERT()->url.'assets/css/certificate-field.css', array(), tutor_pro()->version);
    wp_enqueue_script('tutor-pro-certificate-field-js', TUTOR_CERT()->url.'assets/js/certificate-field.js', array('jquery'), tutor_pro()->version, true);

    And many other styles & scripts enqueue on all pages for now. You guys should be to go to check and enqueue on used.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Improvement Performance’ is closed to new replies.