Skip to content

Commit

Permalink
fix: load intercom after user scroll [sc-00] (#948)
Browse files Browse the repository at this point in the history
* fix: load Intercom after user scroll [sc-00]

* fix: remove console log [sc-00]
  • Loading branch information
pilimartinez authored Nov 29, 2023
1 parent 537dec0 commit a89ea61
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions site/layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,9 @@
app_id: 'ep3ft8gg',
custom_launcher_selector: '.open-intercom-link'
})

window.removeEventListener('DOMContentLoaded', intercomLoader)
window.removeEventListener('scroll', intercomLoader)
}
window.addEventListener('DOMContentLoaded', intercomLoader)
window.addEventListener('scroll', intercomLoader)
</script>

<!-- Google Tag Manager -->
Expand Down

1 comment on commit a89ea61

@vercel
Copy link

@vercel vercel bot commented on a89ea61 Nov 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.