{"action":"created","issue":{"url":"https://api.github.com/repos/salcode/bootstrap-genesis/issues/116","labels_url":"https://api.github.com/repos/salcode/bootstrap-genesis/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/salcode/bootstrap-genesis/issues/116/comments","events_url":"https://api.github.com/repos/salcode/bootstrap-genesis/issues/116/events","html_url":"https://github.com/salcode/bootstrap-genesis/issues/116","id":116201199,"number":116,"title":"jQuery issues with enqueue scripts","user":{"login":"christopherarter","id":12786153,"avatar_url":"https://avatars.githubusercontent.com/u/12786153?v=3","gravatar_id":"","url":"https://api.github.com/users/christopherarter","html_url":"https://github.com/christopherarter","followers_url":"https://api.github.com/users/christopherarter/followers","following_url":"https://api.github.com/users/christopherarter/following{/other_user}","gists_url":"https://api.github.com/users/christopherarter/gists{/gist_id}","starred_url":"https://api.github.com/users/christopherarter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christopherarter/subscriptions","organizations_url":"https://api.github.com/users/christopherarter/orgs","repos_url":"https://api.github.com/users/christopherarter/repos","events_url":"https://api.github.com/users/christopherarter/events{/privacy}","received_events_url":"https://api.github.com/users/christopherarter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-10T21:04:00Z","updated_at":"2015-11-13T06:10:23Z","closed_at":null,"body":"Hello,\r\n\r\nI'm having some issues with jQuery. For testing, I created a fresh install of your theme and started from scratch.\r\n\r\nI'm placing my .js into js/custom, running grunt (uglify), everything is working well there. I'm registering and enqueuing my scripts in a custom plugin file, but when the DOM loads, it's loading the enqueued script first before jQuery, so its throwing an error \"can't find variable:jQuery\". \r\n\r\nI've tested using the old dirty wp_head hook and doing a simple script in the head is not getting any jQuery conflict, so it appears something is happening when it's registering and enqueuing the script. \r\n\r\nDo you have an idea of what may be happening?"},"comment":{"url":"https://api.github.com/repos/salcode/bootstrap-genesis/issues/comments/156335491","html_url":"https://github.com/salcode/bootstrap-genesis/issues/116#issuecomment-156335491","issue_url":"https://api.github.com/repos/salcode/bootstrap-genesis/issues/116","id":156335491,"user":{"login":"bryanwillis","id":4042621,"avatar_url":"https://avatars.githubusercontent.com/u/4042621?v=3","gravatar_id":"","url":"https://api.github.com/users/bryanwillis","html_url":"https://github.com/bryanwillis","followers_url":"https://api.github.com/users/bryanwillis/followers","following_url":"https://api.github.com/users/bryanwillis/following{/other_user}","gists_url":"https://api.github.com/users/bryanwillis/gists{/gist_id}","starred_url":"https://api.github.com/users/bryanwillis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryanwillis/subscriptions","organizations_url":"https://api.github.com/users/bryanwillis/orgs","repos_url":"https://api.github.com/users/bryanwillis/repos","events_url":"https://api.github.com/users/bryanwillis/events{/privacy}","received_events_url":"https://api.github.com/users/bryanwillis/received_events","type":"User","site_admin":false},"created_at":"2015-11-13T06:10:23Z","updated_at":"2015-11-13T06:10:23Z","body":"Also, it's kind of confusing when you say your placing your .js in js/custom....\r\n\r\nDo you mean your javascript is being added to `js/custom.js` and then you are compiling it? If so you shouldn't need to register/enqueue anything else in your plugin. \r\n\r\nIf you look at this file below you will notice it is adding jquery to the footer which is why you need to make sure that if you add any additional jquery scripting you need to include jq as an dependency so it loads after in the footer (as Sal mentioned).\r\n\r\nhttps://github.com/salcode/bootstrap-genesis/blob/develop/lib/load-assets.php\r\n\r\n\r\n\r\n "}}