Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #130833
    skynet
    Participant

    Hello great team, i have a question
    If i install this plugin https://wordpress.org/plugins/remove-jquery-migrate/
    i risk to broke my website? Catchbox use jquery?

    #130866
    skynet
    Participant

    tested it…removed jquery migrate and menu stop working..
    its really necessary the use of jquery migrate? is there any method to avoid it and let’s menu working without jquery migrate?
    I do some test and i see i can make my website faster 800ms/ 1sec if i remove jquery migrate but i think catchbox use it any idea?
    Thank you!

    #130869
    tikaram
    Keymaster

    @skynet : WordPress loads jquery-migrate.js in order to support older jQuery functions that some themes and WordPress plugins use. Removing jQuery Migrate may break those plugins and themes. If you’re sure that your themes and plugins do not require any deprecated jQuery functions, then you can remove otherwise not.
    Let me know if you have any more issues.

    Regards,
    Tikaram

    #130871
    skynet
    Participant

    Hello great Tikaram i perfectly understand that wordpress using jquery-migrate in order to support older jQuery functions, but there is not any way to avoid it to load on catchbox pro ? catchbox pro use the jquery-migrate? If i removed jquery-migrate only mobile menu on catchbox pro stop to working. I don’t have so much plugin.

    Thank you for reply!

    #130872
    skynet
    Participant

    Hi great Tikaram i find the solution to make it fast. I included on my own php functions this code

    // last jquery
    if (!is_admin()) {
    	wp_deregister_script('jquery');
    	wp_register_script('jquery', ("https://code.jquery.com/jquery-3.3.1.min.js"), false);
    	wp_enqueue_script('jquery');
    }

    Now jQuery is loaded automatically from a jquery.com CDN and is fast as light and is the last version!

    Thank you 😉

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Catchbox Pro and jQuery’ is closed to new replies.