Solves the 'Lazy load third-party resources with facades' warning for Intercom's chat widget. A pure JavaScript adaptation of Calibre's React Live Chat Loader.
To download intercom-facade, run:
npm install --save intercom-facade
Alternatively, use the built/minified version of the latest tagged release in dist/
.
Simply use intercom-facade in place of Intercom's embed snippet:
<script>
window.intercomSettings = {
app_id: 'abc123',
background_color: '#22CFC6', // optional, defaults to #333333.
}
</script>
<script src="/path/to/intercom-facade.min.js"></script>
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.