Ashish Negi
Ashish Negi

Reputation: 5301

Requirejs load timeout issue - how to increase the time?

I have a requirejs project.

While debugging it in chrome i put breakpoints in the code and usually i go slowly through the code. But this causes timeout errors for the future files.

How can i increase the timeout time for the files to like 50 seconds?

Upvotes: 5

Views: 236

Answers (1)

sffc
sffc

Reputation: 6424

You can use the waitSeconds config option.

require.config({
    baseUrl: "./scripts",
    waitSeconds: 50,
    paths: {
        // ...
    },
    // ...
});

Upvotes: 4

Related Questions