Help Needed for Messenger to website integration

Joined
Sep 4, 2018
Messages
16
Likes
16
Degree
0
Hi there builders,

How can I put FB messenger in my website without destroying my speed?

I tried to troubleshoot this but this one problem is a Pain.
I tried the manychat Javascript integration in head, My results From 96desktop/93mobile its down to 80/45
I also tried using a Plugin to integrate normal Messenger in Wordpress, its a bit higher, but it's still 85/47

Any tips I can do for the messenger not to affect the speed of the website?
Can loading it 20 seconds after page load be a solution? How can i do this?

Thanks guys,
Your the best!
 
Yeah, you can do that - Don't think it matters though, you can just load it async (and it probably does already).


Something like this from the top of my head.



JavaScript:
let MY_MANYCHAT_SCRIPT = "https://manychat.com/something/i/dont/know/i/dont/use/it";

window.onload = function() {
    setTimeout(addManyChatPlugin, 20000);
};

function addManyChatPlugin() {
    manychat_script = document.createElement("script");
    manychat_script.src = MY_MANYCHAT_SCRIPT;
    document.body.appendChild(manychat_script);
    console.log("Manychat script appended to DOM");
};
 
let MY_MANYCHAT_SCRIPT = "https:// manychat. com/something/i/dont/know/i/dont/use/it"; window.onload = function() { setTimeout(addManyChatPlugin, 20000);
Thanks for the Assistance and for teaching me a bit of how to use this code via PM. Thanks a lot, man!
It's now working and speed problem has been solved. Im now with Chat support and still maintaining the 95 speed in insights, pingdom and gtmetrix. Apprecaite it!
 
Np man, that's awesome. Happy to help
 
Back