{"action":"created","issue":{"url":"https://api.github.com/repos/jrburke/requirejs/issues/1257","labels_url":"https://api.github.com/repos/jrburke/requirejs/issues/1257/labels{/name}","comments_url":"https://api.github.com/repos/jrburke/requirejs/issues/1257/comments","events_url":"https://api.github.com/repos/jrburke/requirejs/issues/1257/events","html_url":"https://github.com/jrburke/requirejs/issues/1257","id":53296179,"number":1257,"title":"require.js sometimes throws Load Timeout even though it never started loading the file","user":{"login":"cowwoc","id":633348,"avatar_url":"https://avatars.githubusercontent.com/u/633348?v=3","gravatar_id":"","url":"https://api.github.com/users/cowwoc","html_url":"https://github.com/cowwoc","followers_url":"https://api.github.com/users/cowwoc/followers","following_url":"https://api.github.com/users/cowwoc/following{/other_user}","gists_url":"https://api.github.com/users/cowwoc/gists{/gist_id}","starred_url":"https://api.github.com/users/cowwoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cowwoc/subscriptions","organizations_url":"https://api.github.com/users/cowwoc/orgs","repos_url":"https://api.github.com/users/cowwoc/repos","events_url":"https://api.github.com/users/cowwoc/events{/privacy}","received_events_url":"https://api.github.com/users/cowwoc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2015-01-03T06:28:53Z","updated_at":"2015-08-20T19:45:25Z","closed_at":"2015-01-23T22:41:46Z","body":"I've been able to consistently reproduce a problem where require.js loads modules for 200ms, then sits there until `waitSeconds` expires and throws an error complaining that a certain module never loaded in time. Thing is, I can see that require.js never even tries to load the module in question.\r\n\r\nTake a look at the log I posted over at https://github.com/guybedford/require-css/issues/177#issuecomment-68548826. Do you think this issue is related to https://github.com/jrburke/requirejs/issues/1046?\r\n\r\nI don't have a minimal testcase for reproducing the problem, but I am able to reproduce it locally fairly consistently. It occurs roughly 10% of the time, so if I run 10 unit tests in a row I tend to run into this bug at least once.\r\n\r\nThe posted log doesn't contain timestamp values but shortly after posting the comment I added them by logging `var timeElapsed = new Date().getTime() - context.startTime` for each line.\r\n\r\n@jrburke I am not going to be able to resolve this without your help. How do I go about debugging this further?"},"comment":{"url":"https://api.github.com/repos/jrburke/requirejs/issues/comments/133150663","html_url":"https://github.com/jrburke/requirejs/issues/1257#issuecomment-133150663","issue_url":"https://api.github.com/repos/jrburke/requirejs/issues/1257","id":133150663,"user":{"login":"cowwoc","id":633348,"avatar_url":"https://avatars.githubusercontent.com/u/633348?v=3","gravatar_id":"","url":"https://api.github.com/users/cowwoc","html_url":"https://github.com/cowwoc","followers_url":"https://api.github.com/users/cowwoc/followers","following_url":"https://api.github.com/users/cowwoc/following{/other_user}","gists_url":"https://api.github.com/users/cowwoc/gists{/gist_id}","starred_url":"https://api.github.com/users/cowwoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cowwoc/subscriptions","organizations_url":"https://api.github.com/users/cowwoc/orgs","repos_url":"https://api.github.com/users/cowwoc/repos","events_url":"https://api.github.com/users/cowwoc/events{/privacy}","received_events_url":"https://api.github.com/users/cowwoc/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T19:45:25Z","updated_at":"2015-08-20T19:45:25Z","body":"@lucasroselli Maybe your case differs from mine. All I can tell you is that as part of my investigation I added a `print()` statement inside RequireJS immediately before it begins loading the external JS file. I consistently saw RequireJS complaining about a load timeouts for files it never even began to load.\r\n\r\nIf an extension really was at fault, you'd see the `print()` statement saying that RequireJS is about to load the file, followed by a delay (caused by the extension), followed by a timeout error. In my case, this never took place.\r\n\r\n@jrburke as I mentioned in the past, it would help a lot if you could add logging into RequireJS's official release. This would allow users to diagnose such problems without needing to understand library internals."}}