Skip to content

Optimize the bento.js shared dependency bundle #36899

Closed
@samouri

Description

summary
bento.js is a new binary containing dependencies which all of the bento extensions depend on (1). Things like Preact and PreactBaseElement. We should optimize this bundle to be as small as possible.

source-map-explorer
image (1)

starting size: 17.62 kb brotli, 54.93 kb uncompressed
goal: < 10 kb brotli

opportunities

  • (S) minimize cost of preact/compt: ~1.65
  • (S) parseProps
  • (S) CE Polyfill ~1.5
  • (L) minimize or remove Context: ~3kb
  • your idea here

cc @ampproject/wg-performance / @ampproject/wg-bento / @ampproject/wg-components

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions