Skip to content

Commit

Permalink
Make TrueVault script async.
Browse files Browse the repository at this point in the history
  • Loading branch information
codecodeio committed Nov 6, 2024
1 parent 39194f3 commit f31f15d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions best-cigars-guide/scripts/delayed.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ function loadTrueVault() {

const script = document.createElement('script');
script.src = 'https://polaris.truevaultcdn.com/static/pc/OTNJF7CVF/polaris.js';
script.async = true;
script.onload = () => {
// DOMContentLoaded event is required to initialise polaris
window.document.dispatchEvent(new Event('DOMContentLoaded'));
Expand Down

0 comments on commit f31f15d

Please sign in to comment.