• Resolved pierre1688

    (@pierre1688)


    Hi,
    According to I would like to combine all external javascripts into one file, I need to know how to stop calling them first. May I have your any comments for this confused quesetion if available?

    /wp-includes/js/jquery/jquery.js
    /wp-includes/js/jquery/ui/tabs.min.js
    /wp-includes/js/jquery/jquery-migrate.min.js
    /wp-includes/js/jquery/ui/accordion.min.js
    /wp-includes/js/jquery/ui/widget.min.js
    /wp-includes/js/jquery/ui/core.min.js

    Thanks in advance!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter pierre1688

    (@pierre1688)

    Hi,
    I think I have already solutions to fix this question.
    Sorry for any inconvenience!
    This issue can be closed!
    Thanks again!

    Thread Starter pierre1688

    (@pierre1688)

    Hi,
    Sorry for causing inconvenience again!
    The solution seems to have side effect.
    So, I still need your help to have any comments for this question again!

    To stop calling below js files:
    /wp-includes/js/jquery/jquery.js
    /wp-includes/js/jquery/ui/tabs.min.js
    /wp-includes/js/jquery/jquery-migrate.min.js
    /wp-includes/js/jquery/ui/accordion.min.js
    /wp-includes/js/jquery/ui/widget.min.js
    /wp-includes/js/jquery/ui/core.min.js

    Please help to investigate it!
    Thanks for a million!

    Thread Starter pierre1688

    (@pierre1688)

    Hi,
    Finally, I found out the solution to fix it with below codes.

    add_action( 'wp_print_scripts', 'deregister_javascript', 99 );
     
    function deregister_javascript() {
     wp_deregister_script( 'jquery' );
     wp_deregister_script( 'tabs.min' );
     wp_deregister_script( 'jquery-migrate.min' );
     wp_deregister_script( 'accordion.min' );
     wp_deregister_script( 'widget.min' );
     wp_deregister_script( 'core.min' );
    }

    Thanks.

    @pierre1688

    Do let us know if you have any further queries regarding the theme.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to stop calling those js files with below list?’ is closed to new replies.