I am using <link rel=preload> to preload an iframe.
e.g. <link rel="preload" href="https://example.com" as="document">
But Chrome and Edge giving me warning as <link rel=preload> uses an unsupported 'as' value
. Also cannot see any document request for https://example.com in Network tab.
Tried to remove the as
attribute but again it is throwing <link rel=preload> must have a valid 'as' value
warning.
As said that in the document you mentioned. The as="document"
is not support in Chrome or Edge. Something like this below.
In this case,I think you have to modify your code to match browser compatibility. Or switch the browser which support this attribute.