mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-23 23:21:00 +01:00
Added preload hints in privacy plugin replacements (#7733)
This commit is contained in:
parent
eee4934efd
commit
6a0a790e8f
@ -302,8 +302,8 @@ class PrivacyPlugin(BasePlugin[PrivacyConfig]):
|
|||||||
if rel == "preconnect":
|
if rel == "preconnect":
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
# Replace external style sheet or favicon
|
# Replace external favicon, preload hint or style sheet
|
||||||
if rel == "stylesheet" or rel == "icon":
|
if rel in ("icon", "preload", "stylesheet"):
|
||||||
file = self._queue(url, config)
|
file = self._queue(url, config)
|
||||||
el.set("href", resolve(file))
|
el.set("href", resolve(file))
|
||||||
|
|
||||||
|
@ -302,8 +302,8 @@ class PrivacyPlugin(BasePlugin[PrivacyConfig]):
|
|||||||
if rel == "preconnect":
|
if rel == "preconnect":
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
# Replace external style sheet or favicon
|
# Replace external favicon, preload hint or style sheet
|
||||||
if rel == "stylesheet" or rel == "icon":
|
if rel in ("icon", "preload", "stylesheet"):
|
||||||
file = self._queue(url, config)
|
file = self._queue(url, config)
|
||||||
el.set("href", resolve(file))
|
el.set("href", resolve(file))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user