{"action":"closed","issue":{"url":"https://api.github.com/repos/jrburke/requirejs/issues/1328","labels_url":"https://api.github.com/repos/jrburke/requirejs/issues/1328/labels{/name}","comments_url":"https://api.github.com/repos/jrburke/requirejs/issues/1328/comments","events_url":"https://api.github.com/repos/jrburke/requirejs/issues/1328/events","html_url":"https://github.com/jrburke/requirejs/issues/1328","id":68091684,"number":1328,"title":"data-main Entry Point documentation issue (I think)","user":{"login":"mmenozzi","id":1199914,"avatar_url":"https://avatars.githubusercontent.com/u/1199914?v=3","gravatar_id":"","url":"https://api.github.com/users/mmenozzi","html_url":"https://github.com/mmenozzi","followers_url":"https://api.github.com/users/mmenozzi/followers","following_url":"https://api.github.com/users/mmenozzi/following{/other_user}","gists_url":"https://api.github.com/users/mmenozzi/gists{/gist_id}","starred_url":"https://api.github.com/users/mmenozzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmenozzi/subscriptions","organizations_url":"https://api.github.com/users/mmenozzi/orgs","repos_url":"https://api.github.com/users/mmenozzi/repos","events_url":"https://api.github.com/users/mmenozzi/events{/privacy}","received_events_url":"https://api.github.com/users/mmenozzi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-13T13:05:57Z","updated_at":"2015-04-13T19:28:33Z","closed_at":"2015-04-13T19:28:33Z","body":"Hi,\r\nhere (https://github.com/jrburke/requirejs/blob/master/docs/api.html#L180, so here http://requirejs.org/docs/api.html#data-main) you say that we have to require **scripts/config** and then do other require calls. But above you used **scripts/main** as configuration script for requireJS and there is no baseUrl in main.js so the baseUrl should be **scripts**.\r\n\r\nSo I think that documentation is wrong because requiring **scripts/config** will cause a loading error. The right version should be:\r\n\r\n```\r\n<script src=\"scripts/require.js\"></script>\r\n<script>\r\nrequire(['main'], function() {\r\n    // Configuration loaded now, safe to do other require calls\r\n    // that depend on that config.\r\n    require(['foo'], function(foo) {\r\n\r\n    });\r\n});\r\n</script>\r\n```\r\n\r\nAm I right?"}}