From 27b38890169bcf0342291ebab820cbbb2d3e5ca5 Mon Sep 17 00:00:00 2001 From: Nejc Habjan Date: Fri, 22 Nov 2024 14:02:14 +0100 Subject: [PATCH] Include preload hints in privacy plugin replacements --- src/plugins/privacy/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/privacy/plugin.py b/src/plugins/privacy/plugin.py index a180c57a2b5..aba2b8b2933 100644 --- a/src/plugins/privacy/plugin.py +++ b/src/plugins/privacy/plugin.py @@ -302,8 +302,8 @@ def replace(match: Match): if rel == "preconnect": return "" - # Replace external style sheet or favicon - if rel == "stylesheet" or rel == "icon": + # Replace external favicon, preload hint or style sheet + if rel in ("icon", "preload", "stylesheet"): file = self._queue(url, config) el.set("href", resolve(file))