• Hola, he seguido las indicaciones de este tutorial https://docs.elementor.com/article/286-speed-up-a-slow-site y lo he colocado en un thema hijo asi:
    ———–
    Hello, I followed the instructions in this tutorial https://docs.elementor.com/article/286-speed-up-a-slow-site and I have placed it in a thema son asi:
    **************************************************
    <?php
    /*
    * Child theme functions file
    *
    */
    function colormag_child_enqueue_styles() {

    $parent_style = ‘colormag_style’; //parent theme style handle ‘colormag_style’

    //Enqueue parent and chid theme style.css
    wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘colormag_child_style’,
    get_stylesheet_directory_uri() . ‘/style.css’,
    array( $parent_style ),
    wp_get_theme()->get(‘Version’)
    );
    }
    add_action( ‘wp_enqueue_scripts’, ‘colormag_child_enqueue_styles’ );
    /*
    * Para las fuentes de Google:
    *
    */
    add_filter( ‘elementor/frontend/print_google_fonts’, ‘__return_false’ );
    /*
    * Para iconos de fuentes impresionantes:
    *
    */
    add_action( ‘wp_enqueue_scripts’, function() { wp_dequeue_style( ‘font-awesome’ ); }, 50 );

    /*
    * Para eliminar la solicitud de http Font Awesome también:
    *
    */
    add_action( ‘elementor/frontend/after_enqueue_styles’, function () { wp_dequeue_style( ‘font-awesome’ ); } );

    /*
    * Para Eicons:
    *
    */
    add_action( ‘elementor/frontend/after_enqueue_styles’, function() { wp_dequeue_style( ‘elementor-icons’ ); } );
    ?>
    *********************************************************************************

    y como puede apreciar en la web https://www.tarotistasvidentes.es siguen apareciendo estas solicitudes, estoy tratando de disminuir el tiempo de carga de la web, me pueden orientar el motivo por el que no funcionan.

    Saludos
    ————————-
    and as you can see on the web https://www.tarotistasvidentes.es these requests keep appearing, I am trying to reduce the loading time of the web, they can guide me the reason why they do not work.

    regards

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @somosbrujas

    If you are trying to dequeue those custom library files then, maybe you can increase the priority for those hooks which you have used and see if that helps you out? If not then, can you once consult with the respective plugin developer? They might be able to assist you properly onto it better than we could since which you are trying to dequeue are the scripts of the Elementor plugin, not of the theme.

    Thanks.

    Thread Starter Varonblu

    (@somosbrujas)

    From elementor tell me what is thema colormag the one loading the sources

    I cannot see that Elementor loads Font Awesome and Google Fonts on the page by checking the network tab of the browser but I do see that your theme loads both scripts.

    Saludos

    @somosbrujas

    We replied you on another thread which you created. So, can you once check and confirm?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘accelerate a slow site with Elementor’ is closed to new replies.