• 07-06-2021, 12:07:55
    #1
    Kimlik doğrulama veya yönetimden onay bekliyor.
    wp-includes/css/dist/block-library/style.min.css?ver=5.7.2
    wp-includes/js/jquery/jquery.min.js?ver=3.5.1
    wp-includes/js/jquery/jquery-migrate.min.js?ver=3.3.2
    https://fonts.googleapis.com/css?family
    site hız testinde bunları site kodlarımdan kaldırmamı söylüyor nasıl kaldırabilirim wordpress temada hangi dosyanın içerisinde bu kodlar ?
  • 07-06-2021, 12:16:20
    #2
    Kimlik doğrulama veya yönetimden onay bekliyor.
    after adlı üyeden alıntı: mesajı görüntüle
    wp-includes/css/dist/block-library/style.min.css?ver=5.7.2
    wp-includes/js/jquery/jquery.min.js?ver=3.5.1
    wp-includes/js/jquery/jquery-migrate.min.js?ver=3.3.2
    https://fonts.googleapis.com/css?family
    site hız testinde bunları site kodlarımdan kaldırmamı söylüyor nasıl kaldırabilirim wordpress temada hangi dosyanın içerisinde bu kodlar ?
    o kodları kaldırmanızı değil biraz erken veya geç yüklemenizi ister jquery i sildiğinizde sitenizin çalışacağınızı mı düşünüyorsunuz yazılımcı arkadaşlara selam
  • 07-06-2021, 12:17:44
    #3
    isimkaydet.com
    Merhabalar,

    Bu dosyaları kaldırırsanız siteniz bozulma ihtimali çok yüksek lütfen yedek almadan bir değişiklik yapmayınız. Bunun yerine cache eklentisi kullanmanızı tavsiye ederim.

    Kullandığınız panelin dosya yöneticisine giriniz public_html içerisinden wp-includes dosyasını göreceksiniz sonrasında diğer uzantıları takip ederek bulabilirsiniz.
    İyi forumlar dilerim.
  • 07-06-2021, 18:52:28
    #4
    function.php sonuna bu kodları ekleyin.
    add_action( 'wp_head', 'font_preloading_preload_key_requests' );
    
    /*--- Remove Google Fonts ---*/
    add_filter( 'elementor/frontend/print_google_fonts', '__return_false' );
    /*--- Remove Font Awesome ---*/
    add_action( 'elementor/frontend/after_register_styles',function() {
        foreach( [ 'solid', 'regular', 'brands' ] as $style ) {
            wp_deregister_style( 'elementor-icons-fa-' . $style );
        }
    }, 20 );
    /*---  Remove Eicons:  ---*/
    add_action( 'wp_enqueue_scripts', 'remove_default_stylesheet', 20 ); 
    function remove_default_stylesheet() { 
        wp_deregister_style( 'elementor-icons' ); 
    }
    
    
    //mcatakcin
     function remove_jquery_migrate_notice() {
        $m= $GLOBALS['wp_scripts']->registered['jquery-migrate'];
        $m->extra['before'][]='temp_jm_logconsole = window.console.log; window.console.log=null;';
        $m->extra['after'][]='window.console.log=temp_jm_logconsole;';
    }
    add_action( 'init', 'remove_jquery_migrate_notice', 5 );
    
    function smartwp_remove_wp_block_library_css(){
        wp_dequeue_style( 'wp-block-library' );
        wp_dequeue_style( 'wp-block-library-theme' );
        wp_dequeue_style( 'wc-block-style' ); // Remove WooCommerce block CSS
    } 
    add_action( 'wp_enqueue_scripts', 'smartwp_remove_wp_block_library_css', 100 );
    
    
    add_action( "wp_enqueue_scripts", function(){
        // the last arg is "in_footer"
        wp_enqueue_script( $handle, $src, $deps, $ver, true);
        // this will put the proceeding styles in [`wp_footer`][3]
        add_action( "wp_footer", function(){
            wp_enqueue_style( $handle, $src, $deps, $ver, $media );
        });
    });