6

Subresource loading with Web Bundles - Chrome Platform Status

 3 years ago
source link: https://chromestatus.com/feature/5710618575241216
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Provides a new approach to load a large number of resources efficiently using a format that allows multiple resources to be bundled, e.g. Web Bundles.

Motivation

Loading many unbundled resources is still slower in 2020. We concluded that bundling was necessary in 2018, and our latest local measurement still suggests that.

The output of JS bundlers (e.g. webpack) doesn't interact well with the HTTP cache. They are pretty good tools but configuring them to work in an optimal way is tough, and sometimes they'are also incompatible with new requirements like dynamic bundling (e.g. small edit with tree shaking could invalidate everything).

With JS bundlers, execution needs to wait for the full bytes to come. Ideally loading multiple subresources should be able to utilize full streaming and parallelization, but that's not possible if all resources are bundled as one javascript. (For JS modules execution still needs to be waited for the entire tree due to the current deterministic execution model)

Documentation

Status in Chromium

Blink components: Blink

Origin trial (tracking bug)

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.
  • Firefox: No signal
  • Edge: No signal
  • Safari: No signal
  • Web Developers: No signals

Intent to Prototype url

Intent to Prototype thread

Last updated on 2021-03-24


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK