{"action":"created","issue":{"url":"https://api.github.com/repos/woothemes/woocommerce/issues/8488","labels_url":"https://api.github.com/repos/woothemes/woocommerce/issues/8488/labels{/name}","comments_url":"https://api.github.com/repos/woothemes/woocommerce/issues/8488/comments","events_url":"https://api.github.com/repos/woothemes/woocommerce/issues/8488/events","html_url":"https://github.com/woothemes/woocommerce/issues/8488","id":92020395,"number":8488,"title":"Register all styles and scripts before enqueuing them","user":{"login":"bizzthemes","id":5091151,"avatar_url":"https://avatars.githubusercontent.com/u/5091151?v=3","gravatar_id":"","url":"https://api.github.com/users/bizzthemes","html_url":"https://github.com/bizzthemes","followers_url":"https://api.github.com/users/bizzthemes/followers","following_url":"https://api.github.com/users/bizzthemes/following{/other_user}","gists_url":"https://api.github.com/users/bizzthemes/gists{/gist_id}","starred_url":"https://api.github.com/users/bizzthemes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bizzthemes/subscriptions","organizations_url":"https://api.github.com/users/bizzthemes/orgs","repos_url":"https://api.github.com/users/bizzthemes/repos","events_url":"https://api.github.com/users/bizzthemes/events{/privacy}","received_events_url":"https://api.github.com/users/bizzthemes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/woothemes/woocommerce/labels/Needs%20Dev%20Feedback","name":"Needs Dev Feedback","color":"a46497"},{"url":"https://api.github.com/repos/woothemes/woocommerce/labels/Needs%20Reporter%20Feedback","name":"Needs Reporter Feedback","color":"444444"},{"url":"https://api.github.com/repos/woothemes/woocommerce/labels/Refactor","name":"Refactor","color":"d54d21"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/woothemes/woocommerce/milestones/42","html_url":"https://github.com/woothemes/woocommerce/milestones/2.5%20(name%20undecided)","labels_url":"https://api.github.com/repos/woothemes/woocommerce/milestones/42/labels","id":1040289,"number":42,"title":"2.5 (name undecided)","description":"","creator":{"login":"claudiosmweb","id":1264099,"avatar_url":"https://avatars.githubusercontent.com/u/1264099?v=3","gravatar_id":"","url":"https://api.github.com/users/claudiosmweb","html_url":"https://github.com/claudiosmweb","followers_url":"https://api.github.com/users/claudiosmweb/followers","following_url":"https://api.github.com/users/claudiosmweb/following{/other_user}","gists_url":"https://api.github.com/users/claudiosmweb/gists{/gist_id}","starred_url":"https://api.github.com/users/claudiosmweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudiosmweb/subscriptions","organizations_url":"https://api.github.com/users/claudiosmweb/orgs","repos_url":"https://api.github.com/users/claudiosmweb/repos","events_url":"https://api.github.com/users/claudiosmweb/events{/privacy}","received_events_url":"https://api.github.com/users/claudiosmweb/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":0,"state":"open","created_at":"2015-03-26T16:09:14Z","updated_at":"2015-07-08T21:34:33Z","due_on":"2015-09-29T23:00:00Z","closed_at":null},"comments":3,"created_at":"2015-06-30T08:04:22Z","updated_at":"2015-07-10T05:22:04Z","closed_at":null,"body":"Some styles and scripts are directly enqueued, instead of being registered first, look inside `\\includes\\class-wc-frontend-scripts.php` where some are registered and some are directly enqueued. Same goes for `\\includes\\admin\\class-wc-admin-assets.php`.\r\n\r\nAll should be registered first as they're easier to work with. If developer wants to use one script or style, they should simply enqueue it and not call the full path to them again.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/woothemes/woocommerce/issues/comments/120231684","html_url":"https://github.com/woothemes/woocommerce/issues/8488#issuecomment-120231684","issue_url":"https://api.github.com/repos/woothemes/woocommerce/issues/8488","id":120231684,"user":{"login":"claudiosmweb","id":1264099,"avatar_url":"https://avatars.githubusercontent.com/u/1264099?v=3","gravatar_id":"","url":"https://api.github.com/users/claudiosmweb","html_url":"https://github.com/claudiosmweb","followers_url":"https://api.github.com/users/claudiosmweb/followers","following_url":"https://api.github.com/users/claudiosmweb/following{/other_user}","gists_url":"https://api.github.com/users/claudiosmweb/gists{/gist_id}","starred_url":"https://api.github.com/users/claudiosmweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudiosmweb/subscriptions","organizations_url":"https://api.github.com/users/claudiosmweb/orgs","repos_url":"https://api.github.com/users/claudiosmweb/repos","events_url":"https://api.github.com/users/claudiosmweb/events{/privacy}","received_events_url":"https://api.github.com/users/claudiosmweb/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T05:22:04Z","updated_at":"2015-07-10T05:22:04Z","body":"We need move the external libraries too.\r\nNeed to move `jquery.flot*.js`, `accounting.js` and `round.js` from `assets/js/admin` to new directories."}}