Bug 1862185: change documentation of PreloadService to distinguish <link rel=preload> from speculative loads initiated by the parser. r=necko-reviewers,kershaw DONTBUILD

Clarifies that the speculative loads from the parser are meant.

Differential Revision: https://phabricator.services.mozilla.com/D192318
This commit is contained in:
Mirko Brodesser 2023-11-01 09:29:34 +00:00
parent b1e55a9ff8
commit 1dfc60fefb

View File

@ -26,7 +26,9 @@ enum class ReferrerPolicy : uint8_t;
} // namespace dom
/**
* Intended to scope preloads and speculative loads under one roof. This class
* Intended to scope preloads
* (https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/preload)
* and speculative loads initiated by the parser under one roof. This class
* is intended to be a member of dom::Document. Provides registration of
* speculative loads via a `key` which is defined to consist of the URL,
* resource type, and resource-specific attributes that are further