<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Patricio Baliña - Diseño y Desarrollo Web</title>
    <description>The latest articles on DEV Community by Patricio Baliña - Diseño y Desarrollo Web (@patricio_balinia_6df3a7ee).</description>
    <link>https://dev.to/patricio_balinia_6df3a7ee</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4224531%2F18b08d5c-8055-440a-80ff-9fcca1e335e2.jpg</url>
      <title>DEV Community: Patricio Baliña - Diseño y Desarrollo Web</title>
      <link>https://dev.to/patricio_balinia_6df3a7ee</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/patricio_balinia_6df3a7ee"/>
    <language>en</language>
    <item>
      <title>A frontend checklist for sites that get their traffic from Google Maps</title>
      <dc:creator>Patricio Baliña - Diseño y Desarrollo Web</dc:creator>
      <pubDate>Sun, 15 Nov 2026 18:50:00 +0000</pubDate>
      <link>https://dev.to/patricio_balinia_6df3a7ee/a-frontend-checklist-for-sites-that-get-their-traffic-from-google-maps-4ed2</link>
      <guid>https://dev.to/patricio_balinia_6df3a7ee/a-frontend-checklist-for-sites-that-get-their-traffic-from-google-maps-4ed2</guid>
      <description>&lt;p&gt;Someone searches “print shop near me”. Google Maps shows three listings, not ten websites. The tap that follows lands on a phone, and the page has about a second to prove it is the same business as the listing.&lt;/p&gt;

&lt;p&gt;The listing already has a name, a phone number, a category, and a pin. The page confirms those three. A redesign that changes the phone, or hides it inside a picture, leaves Maps with two businesses where there is one.&lt;/p&gt;

&lt;p&gt;I check the markup before I touch the layout.&lt;/p&gt;

&lt;h2&gt;
  
  
  Put the phone in a real link
&lt;/h2&gt;

&lt;p&gt;The Maps session is on a phone. The number has to be the same one as the listing, and it has to be tappable.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"tel:+541100000000"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;11 0000-0000&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use the E.164 form in &lt;code&gt;href&lt;/code&gt;, with the country code and no spaces. Show the local format as the visible text, the way people dial it. Put that link at the top of the page, in the header, not only in the footer.&lt;/p&gt;

&lt;p&gt;A number drawn inside the hero image, or set as a background, cannot be tapped. A WhatsApp button that uses a third number, one that appears nowhere else, splits the business in two.&lt;/p&gt;

&lt;h2&gt;
  
  
  Write the name, the address, and the phone as text
&lt;/h2&gt;

&lt;p&gt;Maps compares the listing with the words on the page. Those words have to be in the HTML.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;address&amp;gt;&lt;/span&gt;
  North Print
  &lt;span class="nt"&gt;&amp;lt;br&amp;gt;&lt;/span&gt;
  KM 50, Pilar, Buenos Aires
  &lt;span class="nt"&gt;&amp;lt;br&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"tel:+541100000000"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;11 0000-0000&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/address&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The same string belongs in the footer and on the contact page. A service-area business, one that visits the customer, states the area it actually covers. A pin in the middle of town, chosen because it looks central, points Maps at a place where nobody is served.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;LocalBusiness&lt;/code&gt; structured data helps when it repeats that same name, address, and phone. It does not replace the visible text. If the schema says one number and the page says another, the contradiction is now machine-readable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Make the title the trade and the place
&lt;/h2&gt;

&lt;p&gt;The document title and the &lt;code&gt;h1&lt;/code&gt; should say what the customer typed and where.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;title&amp;gt;&lt;/span&gt;Print shop in Pilar | North Print&lt;span class="nt"&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Print shop in Pilar&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;“Integral solutions” could belong to any city. Maps has nothing to line up with the listing category. One service, one URL: &lt;code&gt;/business-cards/&lt;/code&gt; can say business cards, and the home page can say the trade and the area. A single scrolling page that mentions six trades in one &lt;code&gt;h1&lt;/code&gt; gives the listing nothing specific to confirm.&lt;/p&gt;

&lt;p&gt;The business name stays the name on the sign and on the invoice. Adding the city to the name belongs in the title, and in the name itself only when it is already part of the brand.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep the first screen light
&lt;/h2&gt;

&lt;p&gt;The visit is already on a cellular connection. The largest element on that first screen is what the phone has to paint.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Give the hero image a width and a height, so the layout does not jump when it arrives.&lt;/li&gt;
&lt;li&gt;Serve a modern format, and a size close to what the phone actually displays.&lt;/li&gt;
&lt;li&gt;Leave carousels and autoplay video off the first screen. The phone number is the thing that has to be there.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A WordPress theme packed with plugins can miss this even when the design looks fine on a desktop. Each plugin that injects a font, a slider, or a chat bubble on every page delays the number the person came to tap.&lt;/p&gt;

&lt;h2&gt;
  
  
  If the client will edit the site, the text has to stay text
&lt;/h2&gt;

&lt;p&gt;On a WordPress site the owner will change a photo and, sometimes, the phone. The editable field for the phone has to output an &lt;code&gt;&amp;lt;a href="tel:"&amp;gt;&lt;/code&gt;, not a new hero image with the number baked in.&lt;/p&gt;

&lt;p&gt;A page builder is fine when the service name, the area, and the phone remain real text widgets. The moment those three live only inside an image widget, the listing and the page drift apart the first time someone updates the design.&lt;/p&gt;

&lt;h2&gt;
  
  
  The order
&lt;/h2&gt;

&lt;p&gt;Category on the listing first: the trade people type. Then the same name, address, and phone on the listing and in the HTML, with the pin where the business actually works. Then recent photos of the work. Then the page, which confirms the listing instead of trying to replace it.&lt;/p&gt;

&lt;p&gt;The map side of that order — why three listings show up, and why a farther one can rank first when Google understands what it sells — is the piece I wrote as &lt;a href="https://www.patriciobalina.com.ar/en/how-local-seo-works/" rel="noopener noreferrer"&gt;How local SEO works&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>html</category>
      <category>seo</category>
      <category>wordpress</category>
    </item>
    <item>
      <title>Core Web Vitals en WordPress: el orden para arreglar LCP, INP y CLS</title>
      <dc:creator>Patricio Baliña - Diseño y Desarrollo Web</dc:creator>
      <pubDate>Tue, 03 Nov 2026 18:03:48 +0000</pubDate>
      <link>https://dev.to/patricio_balinia_6df3a7ee/core-web-vitals-en-wordpress-el-orden-para-arreglar-lcp-inp-y-cls-1le4</link>
      <guid>https://dev.to/patricio_balinia_6df3a7ee/core-web-vitals-en-wordpress-el-orden-para-arreglar-lcp-inp-y-cls-1le4</guid>
      <description>&lt;p&gt;Un WordPress lento casi nunca es “WordPress”. Es un tema con constructor, cuatro plugins haciendo lo mismo y una imagen hero que el navegador descubre tarde. Los Core Web Vitals —LCP, INP y CLS— sirven para ver eso con números de usuarios reales, no con una corrida de Lighthouse en la notebook.&lt;/p&gt;

&lt;p&gt;Los umbrales de “bueno”, en el percentil 75 de Chrome UX Report:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Métrica&lt;/th&gt;
&lt;th&gt;Qué mira&lt;/th&gt;
&lt;th&gt;Bueno&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;LCP&lt;/td&gt;
&lt;td&gt;Cuándo aparece el bloque más grande (imagen o texto)&lt;/td&gt;
&lt;td&gt;≤ 2,5 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;INP&lt;/td&gt;
&lt;td&gt;Cuánto tarda la página en responder a un click, tap o tecla&lt;/td&gt;
&lt;td&gt;≤ 200 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CLS&lt;/td&gt;
&lt;td&gt;Cuánto se mueve el layout mientras carga&lt;/td&gt;
&lt;td&gt;≤ 0,1&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Search Console usa una ventana de unos 28 días. Un cambio que en el laboratorio baja el LCP de 4 s a 1,5 s no pone el informe en verde ese mismo día.&lt;/p&gt;

&lt;h2&gt;
  
  
  Medí el campo y después el laboratorio
&lt;/h2&gt;

&lt;p&gt;PageSpeed Insights muestra las dos capas. Arriba, datos de campo (CrUX): lo que les pasa a tus usuarios en móvil y en escritorio, por separado. Abajo, el laboratorio: una simulación de esa URL, útil para encontrar la causa, mala como score para celebrar.&lt;/p&gt;

&lt;p&gt;Si el campo dice “sin datos”, el sitio no tiene tráfico suficiente. Ahí el laboratorio es lo único que hay. Tratá igual el móvil como el caso que importa: es el que suele fallar.&lt;/p&gt;

&lt;p&gt;En el laboratorio, abrí el desglose de LCP. Viene en cuatro tramos:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;TTFB.&lt;/strong&gt; El servidor tarda en responder.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Demora de carga del recurso.&lt;/strong&gt; El navegador ya tiene HTML y todavía no pide la imagen o la fuente que va a ser el LCP.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Duración de carga.&lt;/strong&gt; El archivo es pesado o la conexión es lenta.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Demora de render.&lt;/strong&gt; El archivo ya llegó y algo (CSS, fuente, JavaScript) impide pintarlo.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Ese desglose decide el orden. Optimizar imágenes cuando el TTFB es 1,8 s no mueve el LCP.&lt;/p&gt;

&lt;p&gt;Para saber qué plugin mete cada script, Query Monitor en un entorno de prueba alcanza. En el navegador, la waterfall y el panel de cobertura muestran CSS y JS que se descargan y casi no se ejecutan.&lt;/p&gt;

&lt;p&gt;Si el sitio ya está en producción y el informe de Search Console viene en rojo, conviene cerrar ese diagnóstico antes de tocar el tema. Es el trabajo de una &lt;a href="https://www.patriciobalina.com.ar/es/servicios/service-seo/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=cwv-wordpress" rel="noopener noreferrer"&gt;auditoría de SEO técnico y rendimiento&lt;/a&gt;: Core Web Vitals, arquitectura y lo que de verdad está bloqueando el render.&lt;/p&gt;

&lt;h2&gt;
  
  
  Si el TTFB es el problema, el tema puede esperar
&lt;/h2&gt;

&lt;p&gt;Un TTFB alto en WordPress suele ser PHP trabajando en cada request: muchos plugins en &lt;code&gt;init&lt;/code&gt;, consultas sin caché y ningún page cache.&lt;/p&gt;

&lt;p&gt;El orden que sí mueve el número:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;PHP actual (8.2 o superior) y opcache activo.&lt;/li&gt;
&lt;li&gt;Caché de página completa para las URLs anónimas. El HTML no tiene por qué generarse en cada visita.&lt;/li&gt;
&lt;li&gt;Object cache (Redis) cuando hay WooCommerce, membresías o mucho &lt;code&gt;WP_Query&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Menos plugins en cada request. Un plugin de seguridad, uno de formularios y uno de SEO. No tres optimizadores de imágenes pisándose.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Un plugin de caché no arregla un DOM de 3 MB ni un constructor que imprime 40 hojas de CSS. Guarda el resultado del TTFB y seguí con el recurso del LCP.&lt;/p&gt;

&lt;h2&gt;
  
  
  LCP: que el navegador pida la imagen correcta, temprano
&lt;/h2&gt;

&lt;p&gt;En la mayoría de los sitios el elemento LCP es la imagen principal. WordPress, desde la 6.3, marca con &lt;code&gt;fetchpriority="high"&lt;/code&gt; la imagen grande del contenido y pone &lt;code&gt;loading="lazy"&lt;/code&gt; en el resto. Eso se rompe en cuatro casos muy comunes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;La imagen es un fondo CSS.&lt;/strong&gt; El navegador la descubre cuando ya parseó el CSS. El hero tiene que ser un &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; (o &lt;code&gt;&amp;lt;picture&amp;gt;&lt;/code&gt;), no un &lt;code&gt;background-image&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Un plugin pone &lt;code&gt;loading="lazy"&lt;/code&gt; en todas las imágenes.&lt;/strong&gt; La que es LCP no se pide hasta que el layout la considera cercana al viewport. Tarde.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;El hero es un slider.&lt;/strong&gt; Se descargan tres fotos y el LCP es la que queda visible, o ninguna, porque el texto del slide entra por JavaScript. La primera vista alcanza con una imagen estática.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;La imagen no tiene tamaño.&lt;/strong&gt; Sin &lt;code&gt;width&lt;/code&gt; y &lt;code&gt;height&lt;/code&gt; el navegador reserva mal el espacio y, de paso, varios optimizadores dejan de tratarla como candidata a LCP.&lt;/p&gt;

&lt;p&gt;La marca del hero, en una plantilla o en un bloque propio:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;img&lt;/span&gt;
  &lt;span class="na"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://ejemplo.com/wp-content/uploads/hero.avif"&lt;/span&gt;
  &lt;span class="na"&gt;alt&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Equipo en el local, sobre la calle"&lt;/span&gt;
  &lt;span class="na"&gt;width&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"1600"&lt;/span&gt;
  &lt;span class="na"&gt;height&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"900"&lt;/span&gt;
  &lt;span class="na"&gt;fetchpriority&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"high"&lt;/span&gt;
  &lt;span class="na"&gt;decoding&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"async"&lt;/span&gt;
&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Sin &lt;code&gt;loading="lazy"&lt;/code&gt;. Formato AVIF o WebP, y un solo plugin de imágenes: dos optimizadores generan variantes distintas y a veces sirven el JPEG original.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sizes&lt;/code&gt; tiene que reflejar el tamaño real en pantalla. Una imagen de 1600 px que en el móvil se muestra a 400 px y se baja completa alarga el tramo de duración sin mejorar nada.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fuentes: una sola, el mismo archivo
&lt;/h2&gt;

&lt;p&gt;El otro candidato a LCP es un título con una webfont. Si el texto espera la fuente, el LCP se corre. Si la fuente entra tarde y cambia de métrica, sube el CLS.&lt;/p&gt;

&lt;p&gt;En un block theme, &lt;code&gt;theme.json&lt;/code&gt; (WordPress 6.5+) declara la cara y el &lt;code&gt;font-display&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"settings"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"typography"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"fontFamilies"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="nl"&gt;"fontFamily"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"\"Source Sans 3\", sans-serif"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="nl"&gt;"slug"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"body"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="nl"&gt;"fontFace"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
            &lt;span class="p"&gt;{&lt;/span&gt;
              &lt;span class="nl"&gt;"fontFamily"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Source Sans 3"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
              &lt;span class="nl"&gt;"fontWeight"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"400 700"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
              &lt;span class="nl"&gt;"fontStyle"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"normal"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
              &lt;span class="nl"&gt;"fontDisplay"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"swap"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
              &lt;span class="nl"&gt;"src"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"file:./assets/fonts/source-sans-3-latin.woff2"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;
          &lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Preload de esa misma woff2, no de otra ruta y no de cuatro pesos:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nf"&gt;add_action&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'wp_head'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;is_admin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nv"&gt;$href&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;get_theme_file_uri&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'assets/fonts/source-sans-3-latin.woff2'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nf"&gt;printf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="s1"&gt;'&amp;lt;link rel="preload" href="%s" as="font" type="font/woff2" crossorigin&amp;gt;'&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="s2"&gt;"\n"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="nf"&gt;esc_url&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$href&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;swap&lt;/code&gt; evita el texto invisible. Para que no empuje el layout, la fallback del sistema tiene que parecerse en ancho (&lt;code&gt;size-adjust&lt;/code&gt;, &lt;code&gt;ascent-override&lt;/code&gt;) o el título tiene que usar un peso que ya está en ese único archivo. Precargar la itálica “por si acaso” compite con la imagen del hero.&lt;/p&gt;

&lt;p&gt;Google Fonts en un &lt;code&gt;&amp;lt;link&amp;gt;&lt;/code&gt; externo suma una conexión y un CSS que bloquea. Self-host del archivo que realmente usa la página es más corto de explicar y más fácil de medir.&lt;/p&gt;

&lt;h2&gt;
  
  
  INP: menos JavaScript en el hilo principal
&lt;/h2&gt;

&lt;p&gt;INP mira la peor interacción, no el promedio. En WordPress el tiempo se va en tres lugares.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;El constructor.&lt;/strong&gt; Elementor, Divi, WPBakery y compañía envían su runtime en todas las páginas, aunque el diseño sea estático. Cada módulo registra handlers. Un tap en el menú espera a que ese JS termine.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Plugins que escuchan todo el documento.&lt;/strong&gt; Sliders, popups, galerías lightbox, contadores de shares. Muchos dependen de jQuery y se encolan en el header.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Terceros.&lt;/strong&gt; Chat, pixel de ads, heatmaps, un embed de mapa. No son tu tema, y cuentan igual para INP.&lt;/p&gt;

&lt;p&gt;Los scripts propios, con la estrategia de carga de WordPress 6.3+:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nf"&gt;wp_enqueue_script&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s1"&gt;'site-extras'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nf"&gt;get_theme_file_uri&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'assets/extras.js'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="kt"&gt;array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="kt"&gt;array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="s1"&gt;'strategy'&lt;/span&gt;  &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'defer'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s1"&gt;'in_footer'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;defer&lt;/code&gt; mantiene el orden y saca el script del parser. No lo uses en algo que el primer render necesita.&lt;/p&gt;

&lt;p&gt;El chat y los píxeles pueden esperar a la primera interacción:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;loadChat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createElement&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'script'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;src&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'https://ejemplo-chat.test/widget.js'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;appendChild&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'pointerdown'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;loadChat&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;once&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Sacar &lt;code&gt;wp-block-library&lt;/code&gt; a ciegas no es una optimización. Si la página usa bloques, se rompe el CSS. Lo que sí se puede quitar es el CSS de un plugin en las plantillas donde ese plugin no aparece (&lt;code&gt;wp_dequeue_style&lt;/code&gt; condicionado a la plantilla, no global).&lt;/p&gt;

&lt;h2&gt;
  
  
  CLS: reservar el lugar antes de que llegue el contenido
&lt;/h2&gt;

&lt;p&gt;CLS en WordPress suele ser concreto:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Imágenes y embeds sin &lt;code&gt;width&lt;/code&gt; y &lt;code&gt;height&lt;/code&gt; (o sin &lt;code&gt;aspect-ratio&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Un banner de cookies o una barra de admin que empuja el header.&lt;/li&gt;
&lt;li&gt;Anuncios o iframes que se inyectan arriba del contenido.&lt;/li&gt;
&lt;li&gt;Icon fonts o webfonts que cambian el ancho de un menú.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;El banner de cookies va en un espacio ya reservado, o superpuesto, con una altura fija. Un iframe de mapa debajo del pliegue lleva &lt;code&gt;aspect-ratio&lt;/code&gt; en el contenedor para que el hueco exista antes de la respuesta del tercero.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.mapa&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;aspect-ratio&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;16&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="kt"&gt;%&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;background&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#e7e2d8&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Qué dejar de sumar
&lt;/h2&gt;

&lt;p&gt;Cada optimizador nuevo es otra capa que reescribe HTML:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Un plugin de lazy load encima del lazy load de WordPress.&lt;/li&gt;
&lt;li&gt;Autoptimize o un combinador de CSS, más el CSS ya concatenado del constructor.&lt;/li&gt;
&lt;li&gt;Un plugin de “quitar emojis, query strings y heartbeat” como si eso fuera el LCP.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;El heartbeat y los emojis no explican un LCP de 5 s. El constructor, la imagen y el TTFB sí.&lt;/p&gt;

&lt;p&gt;Cuando el CSS del tema pesa más que el contenido, el paso siguiente es otro tema: bloques nativos, sin page builder, con las imágenes y la caché resueltas como arriba. Eso es un &lt;a href="https://www.patriciobalina.com.ar/es/servicios/service-wordpress/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=cwv-wordpress" rel="noopener noreferrer"&gt;tema WordPress a medida, medido por Core Web Vitals&lt;/a&gt;, no un ajuste más del plugin de caché.&lt;/p&gt;

&lt;h2&gt;
  
  
  Orden de trabajo
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Anotá LCP, INP y CLS de campo, móvil y escritorio.&lt;/li&gt;
&lt;li&gt;Mirá el desglose de LCP. Si manda el TTFB, caché de página, PHP y plugins activos.&lt;/li&gt;
&lt;li&gt;Identificá el elemento LCP. &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; con tamaño, &lt;code&gt;fetchpriority="high"&lt;/code&gt; y sin lazy load.&lt;/li&gt;
&lt;li&gt;Una sola webfont, self-hosted, preload del mismo archivo.&lt;/li&gt;
&lt;li&gt;Sacá JavaScript que no participa del primer render: constructor de más, sliders, chat, píxeles.&lt;/li&gt;
&lt;li&gt;Reservá espacio para imágenes, banners y embeds.&lt;/li&gt;
&lt;li&gt;Volvé a correr el laboratorio. El campo se actualiza en las semanas siguientes, no en el deploy.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Si el laboratorio mejora y a los 28 días el campo sigue igual, estás midiendo otra URL (home con caché vs. una ficha de producto sin caché) o el tráfico real entra por una plantilla que no tocaste.&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>performance</category>
      <category>webdev</category>
      <category>spanish</category>
    </item>
  </channel>
</rss>
