Skip to content

Commit

Permalink
pump-early-frame (ampproject#9298)
Browse files Browse the repository at this point in the history
prod-config.json history:

ca20059 - 2017-05-16T09:31:30-04:00
Start Doubleclick Fast Fetch potential SRA delay measure experiment (ampproject#9298)
  • Loading branch information
alanorozco committed Dec 4, 2020
1 parent 9d531e1 commit d44ff85
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion build-system/global-configs/canary-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"flexAdSlots": 0.05,
"intersect-resources": 0,
"ios-fixed-no-transfer": 1,
"pump-early-frame": 1,
"remove-task-timeout": 0,
"swg-gpay-api": 1,
"swg-gpay-native": 1,
Expand Down
1 change: 0 additions & 1 deletion build-system/global-configs/prod-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"flexAdSlots": 0.05,
"intersect-resources": 0,
"ios-fixed-no-transfer": 0,
"pump-early-frame": 1,
"swg-gpay-api": 1,
"swg-gpay-native": 1,
"amp-ad-no-center-css": 0,
Expand Down
2 changes: 1 addition & 1 deletion src/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ function maybeLoadCorrectVersion(win, fnOrStruct) {
* pumped.
*/
function maybePumpEarlyFrame(win, cb) {
if (!isExperimentOn(win, 'pump-early-frame')) {
if (!true) {
cb();
return;
}
Expand Down
3 changes: 0 additions & 3 deletions test/unit/test-runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ describes.fakeWin(
);

it('should not maybePumpEarlyFrame when body not yet present', () => {
toggleExperiment(win, 'pump-early-frame', true);
// Make document.body be null on first invocation to simulate
// JS executing before the rest of the doc has been parsed.
const {body} = win.document;
Expand All @@ -223,14 +222,12 @@ describes.fakeWin(
'should not maybePumpEarlyFrame ' +
'when a renderDelayingExtension is present',
() => {
toggleExperiment(win, 'pump-early-frame', true);
win.document.body.appendChild(document.createElement('amp-experiment'));
extensionRegistrationTest();
}
);

it('should maybePumpEarlyFrame and delay extension execution', () => {
toggleExperiment(win, 'pump-early-frame', true);
let progress = '';
const queueExtensions = win.AMP;
const highPriority = regularExtension((amp) => {
Expand Down

0 comments on commit d44ff85

Please sign in to comment.