Skip to content

Commit bcac0dc

Browse files
authored
Cleanup layoutbox-invalidate-on-scroll experiment (ampproject#29665)
Fixes ampproject#25203
1 parent 4a241bd commit bcac0dc

File tree

4 files changed

+1
-14
lines changed

4 files changed

+1
-14
lines changed

build-system/global-configs/canary-config.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
"hidden-mutation-observer": 1,
2929
"intersect-resources": 1,
3030
"ios-fixed-no-transfer": 1,
31-
"layoutbox-invalidate-on-scroll": 1,
3231
"pump-early-frame": 1,
3332
"remove-task-timeout": 0,
3433
"swg-gpay-api": 1,

build-system/global-configs/prod-config.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"hidden-mutation-observer": 1,
3030
"intersect-resources": 0.1,
3131
"ios-fixed-no-transfer": 0,
32-
"layoutbox-invalidate-on-scroll": 1,
3332
"pump-early-frame": 1,
3433
"swg-gpay-api": 1,
3534
"swg-gpay-native": 1,

src/service/resources-impl.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,10 +312,7 @@ export class ResourcesImpl {
312312

313313
this.rebuildDomWhenReady_();
314314

315-
if (
316-
!this.intersectionObserver_ &&
317-
isExperimentOn(this.win, 'layoutbox-invalidate-on-scroll')
318-
) {
315+
if (!this.intersectionObserver_) {
319316
/** @private @const */
320317
this.throttledScroll_ = throttle(this.win, (e) => this.scrolled_(e), 250);
321318

tools/experiments/experiments-config.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -261,14 +261,6 @@ export const EXPERIMENTS = [
261261
spec: 'https://github.com/ampproject/amphtml/issues/25428',
262262
cleanupIssue: 'https://github.com/ampproject/amphtml/issues/26233',
263263
},
264-
{
265-
id: 'layoutbox-invalidate-on-scroll',
266-
name:
267-
'Invalidate the cached layoutboxes of elements nested in a scroller ' +
268-
'after that scroller scrolls.',
269-
spec: 'https://github.com/ampproject/amphtml/issues/24929',
270-
cleanupIssue: 'https://github.com/ampproject/amphtml/issues/25203',
271-
},
272264
{
273265
id: 'amp-stream-gallery',
274266
name: 'Enables component',

0 commit comments

Comments
 (0)