Resource Preloaded With Link Preload Was Not Used
-
I’ve noticed the following warning in Firefox and Chrome console:
The resource at “https://thedomain.com/wp-content/plugins/ti-woocommerce-wishlist/assets/fonts/tinvwl-webfont.woff2?ver=xu2uyi” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly.
I checked the preload tag attributes:
<link rel='preload' as='font' type='font/woff2' crossorigin='anonymous' id='tinvwl-webfont-font-css' href='https://thedomain.com/wp-content/plugins/ti-woocommerce-wishlist/assets/fonts/tinvwl-webfont.woff2?ver=xu2uyi' media='all' />
and they all appear to be correct, so I think the text of the warning is misleading.
The real problem appears to be that
tinvwl-webfont.woff2
preloads on every page, not just product and other pages where it is used. The warning only occurs on pages where Ti WooCommerce Wishlist elements don’t appear.I saw this post, but it really doesn’t address the issue.
What would appear to fix the problem is to only add the preload link on pages where the webfont is needed.
Is there a way, other than by adding another plugin, to prevent Ti WooCommerce Wishlist from loading the webfont on pages where it’s not needed?
It seems like adding an option in Ti WooCommerce Wishlist to prevent loading the webfont on specific pages would be helpful, or even better, if preventing it from being added on pages where it’s unnecessary can be done by default?
- The topic ‘Resource Preloaded With Link Preload Was Not Used’ is closed to new replies.