Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danielbachhuber/intercom-facade
Solves the 'Lazy load third-party resources with facades' warning for Intercom's chat widget
https://github.com/danielbachhuber/intercom-facade
Last synced: 19 days ago
JSON representation
Solves the 'Lazy load third-party resources with facades' warning for Intercom's chat widget
- Host: GitHub
- URL: https://github.com/danielbachhuber/intercom-facade
- Owner: danielbachhuber
- License: mit
- Created: 2021-08-03T11:36:00.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-15T17:46:08.000Z (over 1 year ago)
- Last Synced: 2024-10-09T11:38:12.761Z (30 days ago)
- Language: JavaScript
- Homepage:
- Size: 15.6 KB
- Stars: 18
- Watchers: 4
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Intercom Facade
Solves the '[Lazy load third-party resources with facades](https://web.dev/third-party-facades/)' warning for Intercom's chat widget. A pure JavaScript adaptation of Calibre's [React Live Chat Loader](https://github.com/calibreapp/react-live-chat-loader).
## Installation
To download intercom-facade, run:
```bash
npm install --save intercom-facade
```Alternatively, use the built/minified version of the latest tagged release in `dist/`.
## Usage
Simply use intercom-facade in place of Intercom's embed snippet:
```html
window.intercomSettings = {
app_id: 'abc123',
background_color: '#22CFC6', // optional, defaults to #333333.
}```
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
## License
[MIT](https://choosealicense.com/licenses/mit/)