{"action":"created","issue":{"url":"https://api.github.com/repos/dimsemenov/Magnific-Popup/issues/836","repository_url":"https://api.github.com/repos/dimsemenov/Magnific-Popup","labels_url":"https://api.github.com/repos/dimsemenov/Magnific-Popup/issues/836/labels{/name}","comments_url":"https://api.github.com/repos/dimsemenov/Magnific-Popup/issues/836/comments","events_url":"https://api.github.com/repos/dimsemenov/Magnific-Popup/issues/836/events","html_url":"https://github.com/dimsemenov/Magnific-Popup/issues/836","id":142661547,"number":836,"title":"When concatenate in a single js file with gulp , $(...).magnificPopup is not a function ","user":{"login":"Gonzalo2683","id":1046320,"avatar_url":"https://avatars.githubusercontent.com/u/1046320?v=3","gravatar_id":"","url":"https://api.github.com/users/Gonzalo2683","html_url":"https://github.com/Gonzalo2683","followers_url":"https://api.github.com/users/Gonzalo2683/followers","following_url":"https://api.github.com/users/Gonzalo2683/following{/other_user}","gists_url":"https://api.github.com/users/Gonzalo2683/gists{/gist_id}","starred_url":"https://api.github.com/users/Gonzalo2683/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gonzalo2683/subscriptions","organizations_url":"https://api.github.com/users/Gonzalo2683/orgs","repos_url":"https://api.github.com/users/Gonzalo2683/repos","events_url":"https://api.github.com/users/Gonzalo2683/events{/privacy}","received_events_url":"https://api.github.com/users/Gonzalo2683/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-22T14:09:06Z","updated_at":"2016-04-18T21:51:49Z","closed_at":null,"body":"Hello, i have the following problem.\r\nI concatenate magnific-popup and other plugins in a single js file, but when run the page the console show me **$(...).magnificPopup is not a function**, but if i load the magnific-popup in another separate  tag script src, this works.\r\nWhat is the problem of concatenate in a single file?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/dimsemenov/Magnific-Popup/issues/comments/211597103","html_url":"https://github.com/dimsemenov/Magnific-Popup/issues/836#issuecomment-211597103","issue_url":"https://api.github.com/repos/dimsemenov/Magnific-Popup/issues/836","id":211597103,"user":{"login":"jpcharrier","id":1574534,"avatar_url":"https://avatars.githubusercontent.com/u/1574534?v=3","gravatar_id":"","url":"https://api.github.com/users/jpcharrier","html_url":"https://github.com/jpcharrier","followers_url":"https://api.github.com/users/jpcharrier/followers","following_url":"https://api.github.com/users/jpcharrier/following{/other_user}","gists_url":"https://api.github.com/users/jpcharrier/gists{/gist_id}","starred_url":"https://api.github.com/users/jpcharrier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpcharrier/subscriptions","organizations_url":"https://api.github.com/users/jpcharrier/orgs","repos_url":"https://api.github.com/users/jpcharrier/repos","events_url":"https://api.github.com/users/jpcharrier/events{/privacy}","received_events_url":"https://api.github.com/users/jpcharrier/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T21:51:49Z","updated_at":"2016-04-18T21:51:49Z","body":"I had a similar issue with CodeKit (yes sadly im a GUI user...) however, codekit was placing my imported scripts (ie base magnificPopup.js) after all my scripts. This could be an issue for you also?"}}