mirror of
https://github.com/offen/website.git
synced 2024-11-22 17:10:29 +01:00
load script synchronously
This commit is contained in:
parent
1746abb6b0
commit
bdb7ff98d5
@ -53,18 +53,11 @@ Your analytics tool thinks it doesn't need a consent request? There are tweets e
|
|||||||
|
|
||||||
Well, we have developed a tool for these needs. Say hello and give it a try. We used it to conditionally embed the following Tweet.
|
Well, we have developed a tool for these needs. Say hello and give it a try. We used it to conditionally embed the following Tweet.
|
||||||
|
|
||||||
<div class="consent-container w-100 flex justify-center mt3">
|
<div class="consent-container w-100 flex justify-center mt3"></div>
|
||||||
</div>
|
<div class="tweet-container mb4"></div>
|
||||||
<div class="tweet-container mb4">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script async src="https://consent.offen.dev/client.js"></script>
|
<script src="https://consent.offen.dev/client.js"></script>
|
||||||
<script>
|
<script>
|
||||||
const waitFor = window.setInterval(() => {
|
|
||||||
if (!window.ConsentClient) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
window.clearInterval(waitFor)
|
|
||||||
const client = new window.ConsentClient({
|
const client = new window.ConsentClient({
|
||||||
host: document.querySelector('.consent-container'),
|
host: document.querySelector('.consent-container'),
|
||||||
ui: {
|
ui: {
|
||||||
@ -90,7 +83,6 @@ Well, we have developed a tool for these needs. Say hello and give it a try. We
|
|||||||
.catch(function (err) {
|
.catch(function (err) {
|
||||||
console.error(err)
|
console.error(err)
|
||||||
})
|
})
|
||||||
}, 7)
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
The *Offen Consent Tool* keeps your data footprint small by never storing data about consent decisions on your end. As a lightweight solution for managing user consent on websites, it focuses on these objectives:
|
The *Offen Consent Tool* keeps your data footprint small by never storing data about consent decisions on your end. As a lightweight solution for managing user consent on websites, it focuses on these objectives:
|
||||||
|
Loading…
Reference in New Issue
Block a user