fg-loadcss
Advanced tools
Comparing version 0.1.2 to 0.1.4
@@ -6,3 +6,3 @@ /*! | ||
*/ | ||
function loadCSS( href, before, media ){ | ||
function loadCSS( href, before, media, callback ){ | ||
"use strict"; | ||
@@ -23,2 +23,3 @@ // Arguments explained: | ||
ss.media = "only x"; | ||
ss.onload = callback || function() {}; | ||
// inject link | ||
@@ -25,0 +26,0 @@ ref.parentNode.insertBefore( ss, ref ); |
{ | ||
"name": "fg-loadcss", | ||
"version": "0.1.2", | ||
"version": "0.1.4", | ||
"description": "A function for loading CSS asynchronously", | ||
@@ -5,0 +5,0 @@ "main": "loadCSS.js", |
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
5811
43