load-script
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -16,2 +16,9 @@ | ||
// some good legacy browsers (firefox) fail the 'in' detection above | ||
// so as a fallback we always set onload | ||
// old IE will ignore this and new IE will set onload | ||
if (!script.onload) { | ||
stdOnEnd(script, cb); | ||
} | ||
head.appendChild(script) | ||
@@ -37,4 +44,4 @@ } | ||
this.onreadystatechange = null | ||
cb() // there is no way to catch loading errors in IE8 | ||
cb(null, true) // there is no way to catch loading errors in IE8 | ||
} | ||
} |
{ | ||
"name": "load-script", | ||
"description": "Dynamic script loading for browser", | ||
"version": "0.0.3", | ||
"keywords": ["browser", "script", "load"], | ||
"version": "0.0.4", | ||
"keywords": [ | ||
"browser", | ||
"script", | ||
"load" | ||
], | ||
"repository": { | ||
@@ -7,0 +11,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
3644
10
95
0