Skip to content

Commit

Permalink
Merge pull request #426 from davidhu2000/main
Browse files Browse the repository at this point in the history
feat: remove preconnect link tag to improve performance
  • Loading branch information
benschwarz authored Jul 17, 2024
2 parents 45c2482 + 085a6b9 commit bccf276
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ You can customise the Front placeholder icon by passing the following props to t
- `containerClass`: Class to be added to the placeholder element, defaults to `live-chat-loader-placeholder`

See the [official Front documentation](https://help.front.com/) for more details.

</details>

<details>
Expand Down
5 changes: 0 additions & 5 deletions src/components/LiveChatLoaderProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ export const LiveChatLoaderProvider = ({

return (
<LiveChatLoaderContext.Provider value={value}>
<link
href={baseUrl || chatProvider.domain}
rel="preconnect"
crossOrigin=""
/>
{children}
</LiveChatLoaderContext.Provider>
)
Expand Down

0 comments on commit bccf276

Please sign in to comment.