I am getting a warning about a preload link for a background image on WordPress most likely caused by a previously installed theme or by a current Elementor theme kit.
The warning states that this preloaded link does not actually load the image in the required timeframe and throws an error. I do not need it to preload. How do I remove the link statement? If possible I would like to use a function or filter added to my child theme functions.php file?
The statement that causes the error is as follows (changed to generic names):
<link rel="preload" href="https://www.website_name.com/wp-content/uploads/blog-image.jpg" as="image">
I am using WordPress with Elementor and the Hello Elementor theme and child theme.
I looked at the Elementor Settings from the dashboard and turned off Features > Element Caching. It made no difference. So then I tried clearing the browser cache and purging the cache at Hostinger, ny website host.
Then I checked the Elementor "Page Transitions" feature, which has a "Preloader" option that can be set to use an image. It was off.
I read that a function can be added to find and remove the link statement but I am unsure how to do that.
Any suggestions would be appreciated.