Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax({
- if (document.getElementById("facebook-jssdk")) { //if set, reset
- //removes the <script>
- document.head.removeChild(document.getElementById("facebook-jssdk"));
- delete window.FB; //unloads the APIs
- delete window.fbAsyncInit;
- delete window.fbq;
- delete window._fbq
- delete window.loaded;
- setTimeout(function() {
- $.getScript("https://intentwarenow.com/fb_messenger.js", function() {
- //adding html here
- });
- }, 3000);
- } else {
- $.getScript("https://intentwarenow.com/fb_messenger.js", function() {
- //adding html here
- });
- }
- }
- });
Add Comment
Please, Sign In to add comment