Skip to content

Commit

Permalink
bugfix/remove-async: removed async from script
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandragrodem committed Sep 5, 2024
1 parent 7cc6e96 commit 720e1b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/resources/site/processors/matomo-report.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ exports.responseProcessor = function (req, res) {
siteRootPath = "";
}

res.pageContributions.headEnd.push("<script async defer src=\"" + siteRootPath + "/matomo.js?" + hash + "\"></script>");
res.pageContributions.headEnd.push("<script defer src=\"" + siteRootPath + "/matomo.js?" + hash + "\"></script>");
if (matomoTagManagerContainerId) {
res.pageContributions.headEnd.push("<script async defer src=\"" + matomoJavaScriptUrl + "/container_" + matomoTagManagerContainerId + ".js\"></script>");
res.pageContributions.headEnd.push("<script defer src=\"" + matomoJavaScriptUrl + "/container_" + matomoTagManagerContainerId + ".js\"></script>");
}
if (!matomoTagManagerContainerId) {
res.pageContributions.headEnd.push("<script async defer src=\"" + matomoJavaScriptUrl + "/matomo.js\"></script>");
res.pageContributions.headEnd.push("<script defer src=\"" + matomoJavaScriptUrl + "/matomo.js\"></script>");
}

if (trackDisabledJS) {
Expand Down

0 comments on commit 720e1b5

Please sign in to comment.