Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit 49aa5e9

Browse files
BoykoAlexghillert
authored andcommitted
Specify Require JS script load timeout
1 parent 8ea4bee commit 49aa5e9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ui/app/scripts/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
* @author Andy Clement
2323
*/
2424
require.config({
25+
// The number of seconds to wait before giving up on loading a script.
26+
// Setting it to 0 disables the timeout. The default is 7 seconds.
27+
waitSeconds: 60,
2528
paths: {
2629
model: 'shared/model',
2730
domReady: '../lib/requirejs-domready/domReady',

ui/test/test-main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ for (var file in window.__karma__.files) {
88
}
99

1010
require.config({
11+
// The number of seconds to wait before giving up on loading a script.
12+
// Setting it to 0 disables the timeout. The default is 7 seconds.
13+
waitSeconds: 60,
1114
paths: {
1215
model: 'shared/model',
1316
jquery: '/base/app/lib/jquery/jquery',

0 commit comments

Comments
 (0)