Skip to content

Commit d5c1c11

Browse files
committed
Improve load of systems
1 parent 78b472b commit d5c1c11

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"grunt-contrib-clean": "^1.1.0",
4949
"grunt-contrib-concat": "^1.0.1",
5050
"grunt-contrib-jshint": "^1.1.0",
51-
"grunt-contrib-uglify": "^3.0.1",
51+
"grunt-contrib-uglify": "^3.1.0",
5252
"grunt-contrib-watch": "^1.0.0",
5353
"grunt-contrib-yuidoc": "^1.0.0",
5454
"grunt-jasmine-nodejs": "^1.6.0",
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
2-
"_id": "e89c617b6b15d24",
32
"name": "system-runtime",
4-
"description": "System Runtime",
3+
"master": false,
54
"version": "2.0.0-rc.5",
5+
"description": "System Runtime",
6+
"schemas": {},
7+
"models": {},
68
"behaviors": {
79
"1cb9d103d41dd97": {
810
"_id": "1cb9d103d41dd97",
911
"component": "e89c617b6b15d24",
1012
"state": "start",
11-
"action": "function start() {\n var systems = [],\n system = null,\n scripts = [],\n script = null,\n logLevel = 'warn',\n i = 0,\n length = 0;\n\n // in a browser\n if (typeof document !== 'undefined') {\n systems = document.querySelectorAll('link[rel=system]');\n length = systems.length;\n\n // logger\n scripts = document.querySelectorAll('script[log]');\n if (scripts.length) {\n logLevel = scripts[0].getAttribute('log');\n this.require('logger').level(logLevel);\n }\n\n // systems\n for (i = 0; i < length; i++) {\n system = systems[i];\n\n if (system.getAttribute('async') === 'false') {\n this.require('runtime').install(system.href, false);\n } else {\n this.require('runtime').install(system.href, true);\n }\n }\n\n // ready event\n if (length === 0) {\n this.require('runtime').ready();\n }\n }\n}",
13+
"action": "function start() {\n document.addEventListener('DOMContentLoaded', function(e) {\n var systems = [],\n system = null,\n scripts = [],\n script = null,\n logLevel = 'warn',\n i = 0,\n length = 0;\n \n // in a browser\n if (typeof document !== 'undefined') {\n systems = document.querySelectorAll('link[rel=system]');\n length = systems.length;\n \n // logger\n scripts = document.querySelectorAll('script[log]');\n if (scripts.length) {\n logLevel = scripts[0].getAttribute('log');\n this.require('logger').level(logLevel);\n }\n \n // systems\n for (i = 0; i < length; i++) {\n system = systems[i];\n \n if (system.getAttribute('async') === 'false') {\n this.require('runtime').install(system.href, false);\n } else {\n this.require('runtime').install(system.href, true);\n }\n }\n \n // ready event\n if (length === 0) {\n this.require('runtime').ready();\n }\n }\n }.bind(this));\n}",
1214
"useCoreAPI": true,
1315
"core": true
1416
}
1517
},
16-
"schemas": {},
17-
"models": {},
1818
"types": {},
1919
"components": {},
20-
"master": false
20+
"_id": "e89c617b6b15d24"
2121
}

0 commit comments

Comments
 (0)