VPI: add fetchpriority=high to VPI preload links#993
Conversation
|
@maciejmrozinski Thank you for the improvement |
|
@timotei-litespeed Thanks for the clarification. However, the PageSpeed Insights warning specifically points to the preload request and suggests adding My understanding is that PSI treats the preload request and the actual |
|
Is the LCP image as background image? |
|
Please check if the image is present in VPI list: mobile and desktop |
|
Thanks for the suggestion. I think we may be talking about two different things. The LCP image itself is already rendered with What I am referring to is the specific PageSpeed Insights warning about the preload request. PSI reports that So the question is not whether the correct image is identified as the LCP image, but whether adding Could you clarify whether this is expected behavior or if there is a reason why the attribute is intentionally omitted from the preload tag? |
|
@maciejmrozinski |
|
I think these are actually different test cases. In your example there is no preload tag at all, only In my case, the image is already being preloaded, so there is an additional That's why I proposed adding the attribute to the generated preload tag. My understanding is that once a preload request exists, PSI evaluates that request separately from the |
|
I see your point. Please make 2 changes:
I will forward the changes the developer team and we will be back with an answer |
204a7c1 to
ca5c225
Compare
|
Thank you :) |
|
Thanks for reviewing this. I've made both requested changes:
Thank you for taking another look and for forwarding this to the development team. |
|
@maciejmrozinski Changes have been added to Thank you! :) |


Adds
fetchpriority="high"to image preload links generated infinalize_head()to improve LCP resource prioritization.This addresses the PageSpeed Insights warning about missing high fetch priority on the preloaded LCP image and helps browsers prioritize loading the main visual content earlier.