How to speed up Sparke ?

This topic is: Not resolved

This is a PRIVATE forum for verified users only, to view the replies/answers, you must be logged in!

This topic contains 4 replies, has 3 voices, and was last updated by  Jacob 1 year, 5 months ago.

  • Author
    Posts
  • #10408

    vuhuuduc
    Member
    Post count: 8

    Hi bro ,

    I really love this theme , i want to speed up this theme .So , i found a solution :

    i disable some theme features , but i don’t know how to disable some style and script theme (js,css) , For example :

    I want remove script :jquery.sharrre.min.js?ver=1.0

    Can you show me the snippet to remove above script.
    Thanks

  • #10409

    vuhuuduc
    Member
    Post count: 8

    i try to add this code to file custom-functions.php but it ‘s not working :

    //test diable some scripts but not working
    if(is_single())
    {
        function remove_single()
        {
               
                wp_dequeue_script('flexslider');
                wp_deregister_script('jquery');
                wp_deregister_style('animate');
                wp_deregister_style('flexslider');
                wp_dequeque_style('flexslider');
    	        
        }
    }
    add_action('wp_head', 'remove_single');
  • #10415

    Max
    Staff
    Post count: 3150

    Hey there, You must be logged in to view this reply!

    Login | Register | Forgot Password?

  • #10420

    vuhuuduc
    Member
    Post count: 8

    Hi bro ,

    i tried but not 100% working , only Jquery is disabled , flexslider and animate styles still exists .

    Thanks.

  • #10509

    Jacob
    Staff
    Post count: 2323

    Hey there, You must be logged in to view this reply!

    Login | Register | Forgot Password?

You must be logged in to reply to this topic.

This is a PRIVATE forum for verified users only, to view the replies/answers, you must be logged in!