0

I want to check any third party jquery file load 100% or not. Also, jquery file in minify mode. Please tell me, how to check load jquery file after call script.

Vikrant
  • 4,920
  • 17
  • 48
  • 72
  • 1
    Please show us some relevant code or what you have tried. – Carsten Løvbo Andersen Sep 27 '19 at 06:46
  • Pls check my code which i tried. myextScript.src = 'https://securepubads.g.doubleclick.net/tag/js/gpt.js'; document.getElementsByTagName('head')[0].appendChild(myextScript); window.googletag = window.googletag || {cmd: []}; window.setTimeout(function () { if ( 'pubads' in window) { Here my add google ads code. $('#responce').html('

    Adds Loads Successfully !'); } else { $('#responce').html('

    Adds not Loaded. Because js file not loaded with in time !'); } }, 2000);

    – Thath Singh Sep 27 '19 at 07:50
  • I am not able to get third party js file function.If you have a better idea then plz share with me. – Thath Singh Sep 27 '19 at 07:52

0 Answers0