I have to do the cross-domain ajax,so I try the jsonp.
Then I will have to add the script element dynamiclly to the page,however I can not check its sta
script
Looking at yepnope.js it uses both onload and onreadystatechange but it also uses a timeout loop to check the readystate property of the script element, see here.
onload
onreadystatechange
readystate