{"action":"closed","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/6750","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/6750/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/6750/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/6750/events","html_url":"https://github.com/joomla/joomla-cms/issues/6750","id":67928458,"number":6750,"title":"addStyleSheet, addScript and addSCriptDeclaration used into a plugins are positioned above those of the template and modules","user":{"login":"maofree","id":653230,"avatar_url":"https://avatars.githubusercontent.com/u/653230?v=3","gravatar_id":"","url":"https://api.github.com/users/maofree","html_url":"https://github.com/maofree","followers_url":"https://api.github.com/users/maofree/followers","following_url":"https://api.github.com/users/maofree/following{/other_user}","gists_url":"https://api.github.com/users/maofree/gists{/gist_id}","starred_url":"https://api.github.com/users/maofree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maofree/subscriptions","organizations_url":"https://api.github.com/users/maofree/orgs","repos_url":"https://api.github.com/users/maofree/repos","events_url":"https://api.github.com/users/maofree/events{/privacy}","received_events_url":"https://api.github.com/users/maofree/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joomla/joomla-cms/labels/No%20Code%20Attached%20Yet","name":"No Code Attached Yet","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-04-12T15:46:22Z","updated_at":"2015-04-13T07:58:43Z","closed_at":"2015-04-13T07:58:43Z","body":"Hi\r\nI've developed a my custom gallery plugin to add it into an article.\r\nI know there is the plugin loadmodule to load a module into an article, but I don't like to use this solution\r\nHowever there is a problem of priority about addStyleSheet, addScript and addSCriptDeclaration.\r\nThe behavior should be like for the module, if I use addStyleSheet, addScript and addSCriptDeclaration inside a module its files will call after the template css, js files\r\ninstead with the plugins it doesn't happen, in fact the jquery is loaded after these plugin files and the gallery doesn't work. The css files are load at the top of the rest files and the same for the js files.\r\nI'm using joomla 3.4.1\r\n\r\nthanks\r\n\r\nbye"}}