Low-level fetching code.
Fetching/loading code is divided into:
The request priority used for any given fetch is a browser-specific internal attribute that is generated by considering the destination of the resource, any explicit priority hints as well as browser-specific heuristics. In Chrome's case, it includes:
There is a web.dev article describing the priority scheme used by Chrome here.
Determining request priority is spread across 3 different locations in Chrome:
Link: preload response headers in HTTP 103 early-hint responses.