Themes built on the Twig templating engine are now deprecated and require migration to Vitrin to ensure continued support and compatibility with Zid.
Follow these tips to improve loading times and Core Web Vitals scores.
<head> section:<link rel="preload" as="image"
href="{{ image_url(logoUrl, h=175, q=100) }}"
media="(min-width: 992px)">
{% if logoUrlMobile %}
<link rel="preload" as="image"
href="{{ image_url(logoUrlMobile, h=175, q=100) }}"
media="(max-width: 991px)">
{% else %}
<link rel="preload" as="image"
href="{{ image_url(logoUrl, h=175, q=100) }}"
media="(max-width: 991px)">
{% endif %}media attribute specifies the viewport size that triggers the preloading.logoUrlMobile is not defined.async for scripts that don’t require order.defer for scripts that require order but should not block rendering:srcset to serve the right size based on device: