I have this problem, where UI components of my page are not available like drop down menus until third-party script loading Do not happen. This is the cause of a problem because who knows what is happening on those servers
< / P> Div class = "post-text" itemprop = "text">Try something like this:
& lt; Script type = "text / javascript" & gt; Window.onload = function () {var scripts = ['third party', 'third party 2 url', 'third party 3 url', etc ...]; Var head = document.getElementsByTagName ('head') [0]; (Var i = 0; i & lt; scripts.length; ++ i) (var scriptTag = document.createElement ('script'); ScriptTag.src = script [i]; head.appendChild (scriptTag);} } & Lt; / script & gt;
After loading the page in the customer's browser, it will load into your external script files. Your form UI element should be available to all.
If you are using jQuery, you can:
& lt; script type = "text / javascript" & gt; JQuery (function ($ ) {Var scripts = ['third party', 'third party 2 url', 't ($ ('(L & gt; scripts & gt;', {src: '$ string}', '$ string' Scrurl}));}});
Comments
Post a Comment