We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 093b0a1 commit 26b61ecCopy full SHA for 26b61ec
src/script.js
@@ -106,7 +106,7 @@
106
}
107
108
function bind(fn) {
109
- var a = [].slice.call(aruments, 1)
+ var a = Array.prototype.slice.call(arguments, 1)
110
return function () {
111
fn.apply(null, a)
112
@@ -118,7 +118,7 @@
118
el.type = 'text/javascript'
119
if (preloadExplicit) {
120
el.preload = true
121
- el.onpreload = bind(fn,el)
+ el.onpreload = bind(fn, el)
122
} else {
123
el[onreadystatechange] = function () {
124
if (complete.test(el[readyState])) {
@@ -127,7 +127,7 @@
127
128
129
130
- el.src = path
+ el.src = path // setting .src begins the preload
131
} else if (async) {
132
create(path, fn)
133
0 commit comments