It’s common for larger websites to optimize delivery of assets by bundling many resources together, for performance optimization reasons.. Sites of sufficiently large size may bundle multiple bundles together, typically inserting a string delimiter between them. Hashing should be done on the sub-bundles, which means we need a way to communicate to the browser *how* to split the bundles so hashing will be accurate. Integrity-Policy should allow for this. For example:
Integrity-Policy: blocked-destinations=(script), source=(<manifest_bundle_uri>)
// my_pkg.js
// Code block a maps to 6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b
function my_func() {}
/* MY_DELIM */
// Code block b maps to d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35
function my_other_func() {}