{"action":"created","issue":{"url":"https://api.github.com/repos/primefaces/primefaces/issues/1195","repository_url":"https://api.github.com/repos/primefaces/primefaces","labels_url":"https://api.github.com/repos/primefaces/primefaces/issues/1195/labels{/name}","comments_url":"https://api.github.com/repos/primefaces/primefaces/issues/1195/comments","events_url":"https://api.github.com/repos/primefaces/primefaces/issues/1195/events","html_url":"https://github.com/primefaces/primefaces/issues/1195","id":137872753,"number":1195,"title":"Decouple AJAX and PFS from the big monolith primefaces.js","user":{"login":"ova2","id":767334,"avatar_url":"https://avatars.githubusercontent.com/u/767334?v=3","gravatar_id":"","url":"https://api.github.com/users/ova2","html_url":"https://github.com/ova2","followers_url":"https://api.github.com/users/ova2/followers","following_url":"https://api.github.com/users/ova2/following{/other_user}","gists_url":"https://api.github.com/users/ova2/gists{/gist_id}","starred_url":"https://api.github.com/users/ova2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ova2/subscriptions","organizations_url":"https://api.github.com/users/ova2/orgs","repos_url":"https://api.github.com/users/ova2/repos","events_url":"https://api.github.com/users/ova2/events{/privacy}","received_events_url":"https://api.github.com/users/ova2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-02T13:23:40Z","updated_at":"2016-03-02T13:50:40Z","closed_at":null,"body":"We have got new HTML templates from one UX company and would like to develop with pass-through elements as described here in your blog: http://blog.primefaces.org/?p=3035 We would like only use p:ajax in XHTML (instead of f:ajax) due to useful PF selectors. No PrimeFaces component are planned to be used (at least for now).\r\n\r\nThe problem is, that AjaxBehavior includes primefaces.js.\r\n\r\n```javascript\r\n@ResourceDependencies({\r\n    @ResourceDependency(library=\"primefaces\", name=\"jquery/jquery.js\"),\r\n    @ResourceDependency(library=\"primefaces\", name=\"jquery/jquery-plugins.js\"),\r\n    @ResourceDependency(library=\"primefaces\", name=\"primefaces.js\")\r\n})\r\n```\r\n\r\nThis is a big file which contains 100+ components (performance for mobile is important). We don't need them and only need the AJAX functionality. p:remoteCommand will be used too. But it has exactly the mentioned AJAX functionality.\r\n\r\nCan you not separate AJAX core from the primefaces.js? The idea is to separate AJAX and PFS in one separate module (file). What do you think, can we modularize the PrimeFaces?"},"comment":{"url":"https://api.github.com/repos/primefaces/primefaces/issues/comments/191245316","html_url":"https://github.com/primefaces/primefaces/issues/1195#issuecomment-191245316","issue_url":"https://api.github.com/repos/primefaces/primefaces/issues/1195","id":191245316,"user":{"login":"ova2","id":767334,"avatar_url":"https://avatars.githubusercontent.com/u/767334?v=3","gravatar_id":"","url":"https://api.github.com/users/ova2","html_url":"https://github.com/ova2","followers_url":"https://api.github.com/users/ova2/followers","following_url":"https://api.github.com/users/ova2/following{/other_user}","gists_url":"https://api.github.com/users/ova2/gists{/gist_id}","starred_url":"https://api.github.com/users/ova2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ova2/subscriptions","organizations_url":"https://api.github.com/users/ova2/orgs","repos_url":"https://api.github.com/users/ova2/repos","events_url":"https://api.github.com/users/ova2/events{/privacy}","received_events_url":"https://api.github.com/users/ova2/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T13:50:40Z","updated_at":"2016-03-02T13:50:40Z","body":"That's also consequentially.\r\n\r\nprimefaces-core.js - AJAX, PFS, Utility, no components\r\nprimefaces.js - components\r\nvalidation.js / beanvalidation.js - CSV stuff\r\n\r\nLooks good for me. Again, the goal is that p:ajax and p:remoteCommand don't include primefaces.js."}}