How to cancel pending script
tag request?
I have tag script, who loading content from another server. For some reason server doesn't responce, so i want cancel this pending
script by timeout 2sec.
For example with img
tag I can set src
attribute to empty value, and request will be canceled.
For script tag this doesn't work.
I can't load script content through ajax because CORS restrictions.