• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

OWNERSH A D07-Nov-202091 43

README.mdH A D07-Nov-2020993 84

resource_scheduler.ccH A D07-Nov-202061.8 KiB1,6041,099

resource_scheduler.hH A D07-Nov-20207.2 KiB205102

resource_scheduler_client.ccH A D07-Nov-20201.4 KiB4331

resource_scheduler_client.hH A D07-Nov-20202.1 KiB5533

resource_scheduler_params_manager.ccH A D07-Nov-202015.1 KiB357261

resource_scheduler_params_manager.hH A D07-Nov-20204.8 KiB12762

resource_scheduler_params_manager_unittest.ccH A D07-Nov-202026 KiB578485

resource_scheduler_unittest.ccH A D07-Nov-202099.1 KiB2,5021,752

README.md

1# Resource Scheduler
2
3Resource scheduler controls the loading of the webpages by scheduling the order in which the HTTP requests are dispatched on the network. It ensures that the loading of lower priority resources (e.g., XHRs, images) does not slow down the loading of the higher priority resources (e.g., HTML, CSS, render blocking JavaScript) while ensuring the maximum usage of the available network resources.
4
5## Design
6
7Resource scheduler creates one resource scheduler client is created per execution context (aka per-frame and service worker). This means that iframes get their own scheduler client. Each scheduler client controls the loading of the requests relevat in its context. At a high level, the scheduling logic does not dispatch low priority requests on the network if they are expected to contend for network resources with higher priority requests. This contention is estimated based on the count of higher priority requests in-flight and the estimated network capacity.
8