for example, there is the following js code
var s = document.createElement("script")
s.src = "http://abc.com/dd.js"
s.id = "ak"
document.body.appendChild(s)
the above code will be loaded into dd.js,. What I want to ask is, assuming that dd.js has 1MB and the network environment I am in is also very slow, I want to terminate the download of this dd.js.
I found that ajax has an abort method to terminate the ajax request, but I couldn"t find the "abort" of js. I asked for great help.
ps: I tried to put s.srcroomnull. but found it useless, I will still download the dd.js file