You can run this through a minifier, too, and make something a little more compact to put on the top of all your widgets.
async function loadScripts(...e){for(const o of e){console.log(`Loading script "${o}"...`);const e=await fetch(o),t=await e.text(),c=document.createElement("script"),n=document.createTextNode(t);c.appendChild(n),document.body.appendChild(c),console.log(`Script "${o}" successfully loaded`)}}
@parth.parmar Did you see this thread?
I think you should be able to switch out the url in the first line for the toastify url.
Let us know how you get on.