From d4b9cd042f2defb502ec622ce52e3f321cfc7ee0 Mon Sep 17 00:00:00 2001
From: Federico Brigante <me@fregante.com>
Date: Mon, 20 Feb 2023 13:30:02 +0800
Subject: Run 50 more features before the whole page has loaded (#6357)

---
 source/features/enable-file-links-in-compare-view.tsx | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'source/features/enable-file-links-in-compare-view.tsx')

diff --git a/source/features/enable-file-links-in-compare-view.tsx b/source/features/enable-file-links-in-compare-view.tsx
index 43dded6c..92beb60e 100644
--- a/source/features/enable-file-links-in-compare-view.tsx
+++ b/source/features/enable-file-links-in-compare-view.tsx
@@ -66,6 +66,7 @@ void features.add(import.meta.url, {
 		// If you're viewing changes from partial commits, ensure you're on the latest one.
 		() => select.exists('.js-commits-filtered') && !select.exists('[aria-label="You are viewing the latest commit"]'),
 	],
+	awaitDomReady: true, // DOM-based filters
 	init,
 }, {
 	asLongAs: [
@@ -75,5 +76,6 @@ void features.add(import.meta.url, {
 	include: [
 		pageDetect.isCompare,
 	],
+	awaitDomReady: true, // DOM-based filters
 	init,
 });
-- 
cgit v1.2.3

