()
| 228 | var count = scripts.length; |
| 229 | |
| 230 | function check() { |
| 231 | var script, i; |
| 232 | |
| 233 | for (i = 0; i < count; i++) { |
| 234 | script = result[i]; |
| 235 | |
| 236 | if (script.loaded && !script.executed) { |
| 237 | script.executed = true; |
| 238 | run(script.content, script.url, script.options); |
| 239 | } else if (!script.loaded && !script.error && !script.async) { |
| 240 | break; |
| 241 | } |
| 242 | } |
| 243 | } |
| 244 | |
| 245 | scripts.forEach(function(script, i) { |
| 246 | var options = { |