We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38b8d0e commit 0797cacCopy full SHA for 0797cac
util/versionselector/versionselector.py
@@ -102,10 +102,8 @@ def config_hook(app, config):
102
if not config.plausible_script or not config.plausible_domain:
103
return
104
105
- app.add_js_file(config.plausible_script, {
106
- "defer": "defer", "data-domain": config.plausible_domain
107
- })
108
- print("Plausible analytics script added to this build")
+ print(f"Adding Plausible analytics script added to this build: {config.plausible_domain}")
+ app.add_js_file(config.plausible_script, loading_method="defer", **{"data-domain": config.plausible_domain})
109
110
111
def setup(app):
0 commit comments