Evitar la carga de imagenes a través de payloads?
-
Hola a todos,
En mi tema se cargan las imagenes que lo forman a traves de payloads que Gtmetrix detecta así:
Avoid enormous network payloads ?. URL TRANSFER SIZE https://www.fotov60.com/wp-content/themes/greyzed/images/bg.jpg 38.8KB https://www.fotov60.com/ 30.7KB https://www.fotov60.com/wp-content/themes/greyzed/images/sidebar-bg.jpg 22.6KB https://www.fotov60.com/wp-content/themes/greyzed/images/footerbar.jpg 21.6KB https://www.fotov60.com/wp-content/themes/greyzed/images/content-bg.jpg 7.77KB https://www.fotov60.com/wp-content/litespeed/ucss/70725bb2acf05da5de232412f1be5a70.css?ver=de1fe 6.54KB https://stats.wp.com/e-202321.js 4.42KB https://www.fotov60.com/wp-content/themes/greyzed/images/search-bg.gif 2.98KB https://i0.wp.com/validator.w3.org/feed/images/valid-rss-rogers.png 2.67KB https://www.fotov60.com/wp-content/themes/greyzed/images/sidebar-headings.gif 2.45KBEste es el código del index.php por si ayuda par ver como está cargando las imagenes:
<?php /** * @package WordPress * */ get_header(); ?> <div id="container"> <?php get_sidebar(); ?> <div id="content" role="main"> <div class="column"> <?php $postcount = "0"; // reset post counter ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <?php $postcount++; // post counter ?> <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <div class="posttitle"> <h2 class="pagetitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <small>Posted: <?php echo get_the_date(get_option('date_format')); ?> by <strong><?php the_author() ?></strong> in <?php the_category(', ') ?><br /> <?php the_tags( 'Tags: ', ', ', ''); ?></small> </div> <div class="postcomments"><?php comments_popup_link('0', '1', '%'); ?></div> <div class="entry"> <?php the_content('Read the rest of this entry »'); ?> </div> <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> </div> <?php endwhile; ?> <?php // Find page with last post $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $postsppage= get_option('posts_per_page'); $total = $paged * $postsppage; $remainder = $total - $wp_query->found_posts; $endvar = $postsppage - $remainder; ?> </div> <div id="nav-post"> <div class="navigation-bott"> <?php if($endvar == 0 || $postcount == $endvar) { } else { ?> <div class="leftnav"><?php next_posts_link('Older Entries') ?></div> <?php } if ($paged > 1) { ?> <div class="rightnav"><?php previous_posts_link('Newer Entries') ?></div> <?php } ?> </div> </div> </div> <?php endif; ?> <?php get_footer(); ?>Podriais recomendarme alguna forma de modificar el tema de forma que no se carguen a traves de payloads, que supongo ahorrará recursos cargando mas rapido y dando mejores resultados en estos tipos de analisis? Si hace falta el codigo de algun otro archivo del tema para identificar como esta cargando las imagenes decidmelo y lo posteo.
Un saludo
La página con la que necesito ayuda: [accede para ver el enlace]
El debate ‘Evitar la carga de imagenes a través de payloads?’ está cerrado a nuevas respuestas.