{"action":"created","issue":{"url":"https://api.github.com/repos/gantry/gantry5/issues/856","labels_url":"https://api.github.com/repos/gantry/gantry5/issues/856/labels{/name}","comments_url":"https://api.github.com/repos/gantry/gantry5/issues/856/comments","events_url":"https://api.github.com/repos/gantry/gantry5/issues/856/events","html_url":"https://github.com/gantry/gantry5/issues/856","id":107236909,"number":856,"title":"Loading jQuery library (the one that comes from Joomla) from a Particle","user":{"login":"JoomFX","id":7753940,"avatar_url":"https://avatars.githubusercontent.com/u/7753940?v=3","gravatar_id":"","url":"https://api.github.com/users/JoomFX","html_url":"https://github.com/JoomFX","followers_url":"https://api.github.com/users/JoomFX/followers","following_url":"https://api.github.com/users/JoomFX/following{/other_user}","gists_url":"https://api.github.com/users/JoomFX/gists{/gist_id}","starred_url":"https://api.github.com/users/JoomFX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoomFX/subscriptions","organizations_url":"https://api.github.com/users/JoomFX/orgs","repos_url":"https://api.github.com/users/JoomFX/repos","events_url":"https://api.github.com/users/JoomFX/events{/privacy}","received_events_url":"https://api.github.com/users/JoomFX/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gantry/gantry5/labels/duplicate","name":"duplicate","color":"cccccc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-18T16:40:57Z","updated_at":"2015-09-18T17:21:07Z","closed_at":"2015-09-18T17:21:07Z","body":"@w00fz @mahagr Hey guys, how can I load the jQuery library from a Particle/Twig? The jQuery that comes with Joomla by default.\r\n\r\nI'm looking for exactly the same thing as this:\r\n\r\n```\r\nJHtml::_('jquery.framework');\r\n```\r\n\r\nThe above code loads the following assets in the `<head>`\r\n\r\n```\r\n<script type=\"text/javascript\" src=\"/media/jui/js/jquery.min.js\">\r\n<script type=\"text/javascript\" src=\"/media/jui/js/jquery-noconflict.js\">\r\n<script type=\"text/javascript\" src=\"/media/jui/js/jquery-migrate.min.js\">\r\n```\r\n\r\nSo, I'm looking for something like the following that I will put in my Particles:\r\n\r\n```\r\n{% assets in 'head' %}\r\n    {jquery.framework}\r\n{% endassets -%}\r\n```\r\n\r\nWhere the `{jquery.framework}` is the same thing as `JHtml::_('jquery.framework');`\r\n\r\nI do believe that we need such thing so the jQuery library is loaded just once."},"comment":{"url":"https://api.github.com/repos/gantry/gantry5/issues/comments/141512510","html_url":"https://github.com/gantry/gantry5/issues/856#issuecomment-141512510","issue_url":"https://api.github.com/repos/gantry/gantry5/issues/856","id":141512510,"user":{"login":"mahagr","id":854915,"avatar_url":"https://avatars.githubusercontent.com/u/854915?v=3","gravatar_id":"","url":"https://api.github.com/users/mahagr","html_url":"https://github.com/mahagr","followers_url":"https://api.github.com/users/mahagr/followers","following_url":"https://api.github.com/users/mahagr/following{/other_user}","gists_url":"https://api.github.com/users/mahagr/gists{/gist_id}","starred_url":"https://api.github.com/users/mahagr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mahagr/subscriptions","organizations_url":"https://api.github.com/users/mahagr/orgs","repos_url":"https://api.github.com/users/mahagr/repos","events_url":"https://api.github.com/users/mahagr/events{/privacy}","received_events_url":"https://api.github.com/users/mahagr/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T17:21:07Z","updated_at":"2015-09-18T17:21:07Z","body":"Closing this one in hopes of moving the discussion into #546."}}