I'm trying to preload a video using the link tag's preload rel value per mdn's documentation on preload.
in my index.html file I'm adding the following to the head:
<link rel="preload" as="video" type="video/mp4" href="video/2_1.mp4" />
In chrome this works fine and preloads the file without issue.
When I open the page in safari 11.3 either on my desktop or on an iphone I get a console error message:
must have a valid
asvalue
According to the "what types of content can be preloaded" section of the documentation that contains the list of valid values I'm definitely using the correct video type.
I checked both the mdn documentation for mobile safari preload option on the link tag and it shows a "compatibility unknown" question mark. I also checkedcaniuse and it seems to indicate that as long as my mobile safari version is at 11.3 I should be able to use it.
The phone and my desktop are both at safari 11.3, so I'm not sure why I'm getting this error.
Any ideas/insight??