I'm trying to preload a video using the link tag's preload rel value. Documentation here. in my index.html file I'm adding the following to the head:
<link rel="preload" as="video" type="video/mp4" href="foo.mp4" />
I get the following console error in the latest Chrome, even though video
is a valid as
value according to the spec.
<link rel=preload> must have a valid "as" value
I found this unresolved Chrome bug but that's referring to a different use case. Is it possible to preload video in this way?