A preload is found, but is not used…request credentials mode does not match.
-
A preload for ‘https://see.architdz.com/wp-content/plugins/learnpress/assets/src/css/vendor/fonts/lp-icon/lp-icon.ttf?v3eoq3’ is found, but is not used because the request credentials mode does not match. Consider taking a look at crossorigin attribute.
Not quite sure why is this warning, but it is slowing down the site, any suggestion…
Thanks
-
Hi mubiesam,
Thank you for reaching out!
To help us investigate the “preload not used” warning and its potential impact on your site’s performance, could you please provide us with the following information:
- LearnPress version: The specific version of LearnPress you are currently using.
- Theme: The name of the WordPress theme you have activated on your site.
- Location of the error: On which page or during what action does this warning appear? (e.g., when viewing a course, during checkout, on the homepage, etc.)
This information will allow us to reproduce the warning and provide a more accurate solution.
Best regards,
Brianvu-tpHi @briantp
LearnPress version: 4.0.8
Theme: Edu Press Version 1.0.5
Location of the error: https://see.architdz.com/courses/testsam/
A preload for ‘https://see.architdz.com/wp-content/uploads/sites/17/thim-fonts/jost/92zatBhPNqw73oTd4jQmfxI.woff2’ is found, but is not used because the request credentials mode does not match. Consider taking a look at crossorigin attribute.
Location of the error: https://see.architdz.com/wp-admin/themes.php?theme=edu-press
A preload for ‘https://see.architdz.com/wp-content/plugins/learnpress/assets/src/css/vendor/fonts/lp-icon/lp-icon.ttf?v3eoq3’ is found, but is not used because the request credentials mode does not match. Consider taking a look at crossorigin attribute.
Thanks
Hi mubiesam,
Thank you for providing that information.
Based on your response, it appears you are using an older version of LearnPress (4.0.8). This issue might be resolved in the newer versions.
Because there is a significant version gap, we strongly recommend creating a full site backup before proceeding. Then, please update LearnPress to the latest version, 4.2.7.9, and check if the warning persists.
Updating to the latest version will ensure you have the latest bug fixes and improvements, which may resolve the preload warning you’re seeing.
Best regards,
Brianvu-tpHi @briantp
Sorry, my mistake. version: 4.0.8 is LearnPress – Prerequisites Courses, LearnPress was 4.2.7.8 and just updated to the latest version, 4.2.7.9, but still…
A preload for ‘https://see.architdz.com/wp-content/plugins/learnpress/assets/src/css/vendor/fonts/lp-icon/lp-icon.ttf?v3eoq3’ is found, but is not used because the request credentials mode does not match. Consider taking a look at crossorigin attribute.
Meanwhile, this kind of warnings are showing 50 times and increasing for 2 plugins…LearnPress and SmartSlider3…
The resource was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate
as
value and it is preloaded intentionally.The resource https://see.architdz.com/wp-content/plugins/learnpress/assets/src/css/vendor/fonts/lp-icon/lp-icon.ttf?v3eoq3 was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate
as
value and it is preloaded intentionally.The resource https://see.architdz.com/wp-content/plugins/smart-slider-3/Public/SmartSlider3/Application/Admin/Assets/fonts/Inter-SemiBold.woff2 was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate
as
value and it is preloaded intentionally.Thanks
-
This reply was modified 3 weeks, 1 day ago by
mubiesam.
Hi mubiesam,
Thank you for the updated information and for clarifying the LearnPress version. We appreciate you providing the detailed error messages.
We’ve investigated the preload warnings and have confirmed the issue. It appears that while we’ve transitioned the icon font from TTF to WOFF2 in the current version, there are still some remnants of the TTF preload that haven’t been fully removed.
We will review this in the next LearnPress release.
Thank you for bringing this to our attention.
Best regards,
Brianvu-tpThanks! will wait for your next update.
Hi mubiesam,
Thank you for your patience!
We’ve just released LearnPress version 4.2.8, which addresses the preload warning issue you reported. Please update to the latest version and let us know if the warning is now resolved.
Best regards,
Brianvu-tpUpdated, no preload issue for Learnpress any more, but edu_press.
Hi mubiesam,
Thank you for confirming the LearnPress update and for the additional information regarding the Edu Press warnings.
Based on the screenshot you provided, the warnings appear to be related to font preloading. This indicates that the fonts are not being used immediately after the page loads, which triggers the warning. To address this, please try adding the following code snippet to your child theme’s functions.php file:
add_action('wp_head' , function(){ echo ' <link rel="preload" href="font URL" as="font" type="font/woff2" crossorigin> '; });
Important: You will need to replace “font URL” with the actual URL of the font file that is generating the warning.
Please let us know if this works for you.
Best regards,
Brianvu-tpHi @briantp
Something is really strange, there was no preload issue for Learnpress after update, but it comes back this time even before adding the code you provided. Screenshots
And same result after adding the code Screenshot2
Thanks
Hi mubiesam,
Thank you for your continued feedback and for the screenshots.
We’ve investigated the preload warnings you’ve reported. While these are warnings related to font preloading and suggest the need for theme-level preloading, we haven’t been able to reproduce the exact issue on our local testing environments.
We also attempted to access the site URL provided in your screenshots, but it appears the site is no longer available.
Best regards,
Brianvu-tp
- You must be logged in to reply to this topic.