I’m not sure what is causing this. Randomly noticed and have spent hours trying to figure out where it is coming from (used AI for hours as well).
If I view page source on any product on my site (20K products) I have this around line 3:
Blockquote<link rel=“preload” as=“image” fetchpriority=“high” decoding=“async” href=link.to.image.on.my.website
This doesn’t seem to be hurting anything as you can’t see it on the page but not sure why it’s there. And it’s the same image link on every page which has nothing to do with the actual product on the page. I have disabled add-ons that I think could be in question, cleared cache, put Cloudflare in dev mode among about 100 other things but can’t trace down where it is coming from or how to remove it.
Hello
Which CS-Cart version and which theme are you running? Custom themes quite often carry exactly that preload line straight in index.tpl.
in the stock responsive theme the natural injection point is the index:links hook, index.tpl line 75, right after meta.tpl. That matches the tag showing up around line 3 of the output. And the image URL itself tells you a lot, if it is the logo, a banner or the first slide of a slider, search for that file name or its image_id.
Have a nice day
Best regards
Robert
Do you you Preload addon or Speed-Up package from AlexBranding?
I am on v4.19.1.SP1 using the standard responsive template but my cart is highly modified. The image link in question is to another product image that is the thumbnail of that product (verified). Just not understanding why it is on all product pages. Line 75-76 of index.tpl is:
{hook name="index:links"}
<link href="{$logos.favicon.image.image_path|fn_query_remove:'t'}" rel="shortcut icon" type="{$logos.favicon.image.absolute_path|fn_get_mime_content_type}" />```
While I have a few add-ons for speed (like webp images, lazy load) I am not sure why this one product image is linked. I don't seem to have any add-ons from AlexBranding.
Hello
Two steps to track it down, in this order.
1. curl -s 'https://yoursite.com/some-product' | head -10. If the tag is not in there, it is your browser (an extension), not the site.
2. If the origin really serves it, dont grep for fetchpriority first, grep for the image file name. The same thumbnail on 20k different products means that URL is a literal somewhere:
grep -rn 'that-image-file-name' /path/to/store --include=*.tpl --include=*.php --include=*.js
Best regards
Robert
Try to disable 3rd party addons one by one and check the result. Start from modules related with speed. It does not look like default behaviour