forked from whatwg/html
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update <link>'s processing model to work well for preload
This allows the preload spec to delegate to HTML's "obtain the resource" algorithm for elements, instead of creating a copy of it. The latter approach has been attempted, but got out of date very quickly; see w3c/preload#91 for more details. This also updates rel="preload" to account for recent changes to Fetch that introduced the concept of a "potential destination" for use here. See whatwg/fetch#547. Notably, part of this integration is ignoring invalid as="" attributes, which now includes empty ones. No error event is fired. Finally, it also allows other specifications to override the delaying of the load event, as the preload spec does.
- Loading branch information
Showing
1 changed file
with
47 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters