Is the "as" needed in "early hints" response
What about if we had:
Server response:
HTTP/1.1 103 Preload
Link: </style.css>
Link: </script.js>
Loading: </ball.jpg>
since it doesn't matter what the content to be preloaded is, that will be determined later when the
html page is sent. For example the case for type="javascript" since we don't actually
know what type of script it is anyway from the "early hints" you mentioned, but that
doesn't matter either.
Also we could have a "loading" item to display while the page is being loaded.
This could be a jpg, gif, even a small flash file.
Date: Sun, 25 Jun 2017 12:11:29 +0200
From: Julian Reschke<julian(_dot_)reschke(_at_)gmx(_dot_)de>
...
Server response:
HTTP/1.1 103 Early Hints
Link: </style.css>; rel=preload; as=style
Link: </script.js>; rel=preload; as=script
...