Preloading using JS instead of a tag

Hi Web Perf experts,

We're working <> on
using (unsigned) web bundles to help with preloading subresources. The
current design is at,
but roughly the idea is that a page would build a bundle of the
subresources it intends to use and put a

<link rel="webbundle" href="/the_bundle.wbn" scope="/resources">

with their other preloads (or one of several variations). After that,

<script src="/resources/foo.js">

would find the version in the bundle instead of having to fetch it

In, Krzysztof worries that
adding any new way for a <link> tag to affect script loading is a security
risk, because pages may not be as careful about preventing users from
injecting <link> tags as they are about <script> tags. Instead, he suggests
using a Javascript API to tell the browser to preload subresources using a

What do folks here think?


Received on Thursday, 27 August 2020 20:05:55 UTC