diff --git a/material/plugins/privacy/plugin.py b/material/plugins/privacy/plugin.py index a180c57a2b5..aba2b8b2933 100644 --- a/material/plugins/privacy/plugin.py +++ b/material/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)) 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))