Re: Banner Fetch Priority
Quote:
Originally Posted by
nicksab
ZC 2.0.1
Bootstrap template
Banner on my main page seems to be my LCP ( largest content paint ) and I am currently experimenting with page speed and lighthouse.(speciallywith the new insights which will replace audits soon)
Is it possible to add fetchpriority=high to the banners?
If so, how do I accomplish that?
Thank you for your help
I would pre-load them instead
Re: Banner Fetch Priority
Quote:
Originally Posted by
mprough
I would pre-load them instead
ok but how do you apply this to banners?
i know for jscript but i got no clue on how to do it with php
Re: Banner Fetch Priority
Quote:
Originally Posted by
nicksab
ok but how do you apply this to banners?
i know for jscript but i got no clue on how to do it with php
Code:
<link rel="prefetch" href="path/to/image.jpg">
In the <head></head>
includes/templates/your_template/common/html_header.php
Re: Banner Fetch Priority
Quote:
Originally Posted by
mprough
Code:
<link rel="prefetch" href="path/to/image.jpg">
In the <head></head>
includes/templates/your_template/common/html_header.php
thank you