You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This resource is indeed preloaded using an instruction in the HTTP response header, but it's also loaded via a <script> tag from the same URL. Both have the same crossorigin policy: crossorigin="anonymous". And no warning is displayed in the Dev Tools Console.
This problem appears only in some Wix pages, despite all of them using this preload. Is this a problem in LH / PSI or am I missing something?
The text was updated successfully, but these errors were encountered:
Thanks for filing @DanShappir! It appears to be happening on this page because lodash is rerequested inside a subframe of that page (social-blog.wix.com), so while the original preload is being used correctly, the duplicate requested is triggering the warning logic.
Hi @patrickhulce thank you for the quick response! Just to make sure I understand: there is no unneeded or misconfigured preload on the main page. The problem is that the <script> tag in the iframe has a different crossorigin policy than the preload and <script> tag of the main frame. Is this correct?
Also, per my understanding, the fact that the <script> tag in the iframe has a different crossorigin, while not ideal, doesn't actually impact performance. This is because the iframe will take the resource from the disk cache regardless. (At least until Chrome implements double-keyed cache.) Is this also correct?
Also, per my understanding, the fact that the <script> tag in the iframe has a different crossorigin, while not ideal, doesn't actually impact performance.
Disk cache hits on a network request do have some minor performance impact compared to preload reuse, but in the grand scheme of things, you're right this has minimal impact.
FWIW, I believe double keyed cache has already been implemented, and it's just behind a flag for now :)(https://chromestatus.com/feature/5730772021411840), but yes the subsequent requests should be using the disk cache.
When testing this Wix site: https://www.sova.health/
I get the following warning:
Warnings: A preload was found for "https://static.parastorage.com/unpkg/lodash@4.17.15/lodash.min.js" but was not used by the browser. Check that you are using the
crossorigin
attribute properly.This resource is indeed preloaded using an instruction in the HTTP response header, but it's also loaded via a <script> tag from the same URL. Both have the same crossorigin policy: crossorigin="anonymous". And no warning is displayed in the Dev Tools Console.
This problem appears only in some Wix pages, despite all of them using this preload. Is this a problem in LH / PSI or am I missing something?
The text was updated successfully, but these errors were encountered: