Skip to content

Remove unused OriginExperiments#15220

Merged
dreamofabear merged 4 commits intoampproject:masterfrom
dreamofabear:remove-origin-experiments
May 11, 2018
Merged

Remove unused OriginExperiments#15220
dreamofabear merged 4 commits intoampproject:masterfrom
dreamofabear:remove-origin-experiments

Conversation

@dreamofabear
Copy link
Copy Markdown

A lesson in YAGNI. Reduces bundle-size by 0.07KB.

/to @jridgewell

Copy link
Copy Markdown
Contributor

@jridgewell jridgewell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯


const runtimeFile = './dist/v0.js';
const maxSize = '77.76KB';
const maxSize = '77.68KB';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Man, all that was only .12KB?

@dreamofabear dreamofabear merged commit a0a1136 into ampproject:master May 11, 2018
@dreamofabear dreamofabear deleted the remove-origin-experiments branch May 11, 2018 21:35
dreamofabear pushed a commit to dreamofabear/amphtml that referenced this pull request Jan 10, 2019
dreamofabear pushed a commit that referenced this pull request Jan 11, 2019
* Revert "Remove unused OriginExperiments (#15220)"

This reverts commit a0a1136.

* Pass AmpDoc to get PWA-supported head node.

* parseUrl is deprecated.

* (1/2) Move code from experiments.js to origin-experiments.js.

* (2/2) Move remaining code to OriginExperiments and make it a service.

* Move service getter to origin-experiments-impl.js to avoid v0.js bundling.

* Rewrite tests.

* Use url service instead of parseUrlDeprecated.
noranazmy pushed a commit to noranazmy/amphtml that referenced this pull request Mar 22, 2019
* Revert "Remove unused OriginExperiments (ampproject#15220)"

This reverts commit a0a1136.

* Pass AmpDoc to get PWA-supported head node.

* parseUrl is deprecated.

* (1/2) Move code from experiments.js to origin-experiments.js.

* (2/2) Move remaining code to OriginExperiments and make it a service.

* Move service getter to origin-experiments-impl.js to avoid v0.js bundling.

* Rewrite tests.

* Use url service instead of parseUrlDeprecated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants