Avada Forums Community Forum Avada people, I will pay 20$ for someone to help with this

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Mohammedays
    Participant
    Post count: 26

    I am using avada, and I do not use most of the features on it. I only care about certain stuff. I disabled most features but JavaScript still loads everywhere.

    I found this reply: https://theme-fusion.com/forums/topic/unnecessary-js-files-load-even-when-fusion-elements-disabled/#post-648617

    `add_action( ‘wp_enqueue_scripts’, ‘custom_disable_theme_js’ );

    function custom_disable_theme_js() {
    Fusion_Dynamic_JS::deregister_script(‘avada-comments’);
    Fusion_Dynamic_JS::deregister_script(‘avada-general-footer’);
    Fusion_Dynamic_JS::deregister_script(‘avada-mobile-image-hover’);
    Fusion_Dynamic_JS::deregister_script(‘avada-quantity’);
    Fusion_Dynamic_JS::deregister_script(‘avada-scrollspy’);
    Fusion_Dynamic_JS::deregister_script(‘avada-select’);
    Fusion_Dynamic_JS::deregister_script(‘avada-sidebars’);
    Fusion_Dynamic_JS::deregister_script(‘avada-tabs-widget’);

    Fusion_Dynamic_JS::deregister_script(‘bootstrap-collapse’);
    Fusion_Dynamic_JS::deregister_script(‘bootstrap-modal’);
    Fusion_Dynamic_JS::deregister_script(‘bootstrap-popover’);
    Fusion_Dynamic_JS::deregister_script(‘bootstrap-scrollspy’);
    Fusion_Dynamic_JS::deregister_script(‘bootstrap-tab’);
    Fusion_Dynamic_JS::deregister_script(‘bootstrap-tooltip’);
    Fusion_Dynamic_JS::deregister_script(‘bootstrap-transition’);

    Fusion_Dynamic_JS::deregister_script(‘cssua’);

    Fusion_Dynamic_JS::deregister_script(‘fusion-alert’);
    Fusion_Dynamic_JS::deregister_script(‘fusion-blog’); // !
    Fusion_Dynamic_JS::deregister_script(‘fusion-button’); // !
    Fusion_Dynamic_JS::deregister_script(‘fusion-carousel’);
    Fusion_Dynamic_JS::deregister_script(‘fusion-chartjs’);
    Fusion_Dynamic_JS::deregister_script(‘fusion-column-bg-image’);
    Fusion_Dynamic_JS::deregister_script(‘fusion-count-down’);
    Fusion_Dynamic_JS::deregister_script(‘fusion-equal-heights’);
    Fusion_Dynamic_JS::deregister_script(‘fusion-flexslider’);
    Fusion_Dynamic_JS::deregister_script(‘fusion-image-before-after’);
    Fusion_Dynamic_JS::deregister_script(‘fusion-lightbox’);
    Fusion_Dynamic_JS::deregister_script(‘fusion-parallax’); // !
    Fusion_Dynamic_JS::deregister_script(‘fusion-popover’);
    Fusion_Dynamic_JS::deregister_script(‘fusion-recent-posts’);
    Fusion_Dynamic_JS::deregister_script(‘fusion-sharing-box’);
    Fusion_Dynamic_JS::deregister_script(‘fusion-syntax-highlighter’);
    Fusion_Dynamic_JS::deregister_script(‘fusion-title’);
    Fusion_Dynamic_JS::deregister_script(‘fusion-tooltip’);
    Fusion_Dynamic_JS::deregister_script(‘fusion-video-bg’);
    Fusion_Dynamic_JS::deregister_script(‘fusion-video-general’);
    Fusion_Dynamic_JS::deregister_script(‘fusion-waypoints’);

    Fusion_Dynamic_JS::deregister_script(‘images-loaded’); // !
    Fusion_Dynamic_JS::deregister_script(‘isotope’); // !!

    Fusion_Dynamic_JS::deregister_script(‘jquery-appear’);
    Fusion_Dynamic_JS::deregister_script(‘jquery-caroufredsel’);
    Fusion_Dynamic_JS::deregister_script(‘jquery-count-down’);
    Fusion_Dynamic_JS::deregister_script(‘jquery-count-to’);
    Fusion_Dynamic_JS::deregister_script(‘jquery-easy-pie-chart’);
    Fusion_Dynamic_JS::deregister_script(‘jquery-event-move’);
    Fusion_Dynamic_JS::deregister_script(‘jquery-fade’); // !!
    Fusion_Dynamic_JS::deregister_script(‘jquery-fitvids’);
    Fusion_Dynamic_JS::deregister_script(‘jquery-fusion-maps’);
    Fusion_Dynamic_JS::deregister_script(‘jquery-hover-flow’);
    Fusion_Dynamic_JS::deregister_script(‘jquery-hover-intent’);
    Fusion_Dynamic_JS::deregister_script(‘jquery-infinite-scroll’); // !
    Fusion_Dynamic_JS::deregister_script(‘jquery-lightbox’);
    Fusion_Dynamic_JS::deregister_script(‘jquery-mousewheel’); // !
    Fusion_Dynamic_JS::deregister_script(‘jquery-placeholder’);
    Fusion_Dynamic_JS::deregister_script(‘jquery-request-animation-frame’);
    Fusion_Dynamic_JS::deregister_script(‘jquery-sticky-kit’);
    Fusion_Dynamic_JS::deregister_script(‘jquery-to-top’);
    Fusion_Dynamic_JS::deregister_script(‘jquery-touch-swipe’); // !
    Fusion_Dynamic_JS::deregister_script(‘jquery-waypoints’); // !

    Fusion_Dynamic_JS::deregister_script(‘lazysizes’);
    Fusion_Dynamic_JS::deregister_script(‘packery’); // !!
    Fusion_Dynamic_JS::deregister_script(‘vimeo-player’);

    // Fusion_Dynamic_JS::deregister_script(‘jquery-easing’);
    // Fusion_Dynamic_JS::deregister_script(‘modernizr’);
    // Fusion_Dynamic_JS::deregister_script(‘fusion-testimonials’);
    // Fusion_Dynamic_JS::deregister_script(‘jquery-cycle’); // !
    // Fusion_Dynamic_JS::deregister_script(‘jquery-flexslider’); // !

    }

    it shows a way to dequeue js, I paste it all to the child theme’s functions.php and some functions did not work so I deleted it all. Now I want someone to help me with it so I get get red of the js that are not needed. I want to delete all and keep the one used “only”.

    please reply here or email me at tempx@duck.com

    Thank you

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.