Skip to main content

LCP background image preload and fetchpriority – Brizy Pro + NitroPack cache inconsistency

Comments

1 comment

  • KC George

    Hello Xander,

    Thank you for providing such a detailed report, including your PageSpeed Insights findings, implementation details, and reproducible observations. We appreciate the thorough investigation you've already carried out and understand your preference to avoid disruptive tests on your live WooCommerce website.

    Please find our initial assessment of your questions below.

    1. CSS background images and fetch priority

    Brizy's Image Fetch Priority feature, introduced in version 2.8.18, applies exclusively to images added using the Brizy Image element. It does not apply to background images rendered through .brz-bg-image.

    Unfortunately, Brizy does not currently provide a built-in option to assign high fetch priority to background images. If you need to use Brizy's native Image Fetch Priority setting for your LCP image, the recommended workaround is to replace the existing background image with a regular image added using the Brizy Image element, adjusting the layout as needed to preserve the intended design.

    2. Preloading background images

    Brizy's interface does not currently include a dedicated option to add preload hints for background images. However, it may be possible to implement this using custom code, as you have already attempted.

    Regarding the inconsistency you observed, where NitroPack appears to serve cached HTML without the preload hints injected by your PHP snippet, we recommend contacting NitroPack Support for further investigation. Their team would be better positioned to determine why the cached HTML does not consistently preserve these hints and advise on the most reliable way to implement them within their caching and optimisation workflow.

    3. The reported 4,220 ms resource load delay

    We are not currently aware of any known issues or limitations in Brizy's handling of CSS background images that would specifically explain the 4,220 ms resource load delay you reported.

    Since the image loads quickly once the browser initiates the request, further investigation into when the browser discovers the image and how the page's CSS and rendering process affect that timing may help identify the underlying cause.

    As an initial troubleshooting step, you could also consider testing the page with the Blocksy theme to see whether the behaviour changes. We understand that changing themes on a live WooCommerce site requires care, so we recommend performing this test on a staging environment rather than directly on your production site.

    4. NitroPack compatibility

    We have not received reports of known compatibility issues between Brizy's generated CSS/background images and NitroPack's HTML caching or optimisation. At present, we are not aware of a confirmed incompatibility between the two.

    We hope this clarifies the current capabilities of Brizy's Image Fetch Priority feature and provides a practical starting point for your investigation. Thank you again for sharing your findings with us.

    0

Please sign in to leave a comment.