{"issue":{"created_at":"2011-11-06T18:34:07Z","state":"open","updated_at":"2011-11-19T00:31:28Z","comments":5,"user":{"gravatar_id":"8f3be2c1d014f124f134c6b32e38b123","id":834574,"url":"https://api.github.com/users/chdemko","login":"chdemko","avatar_url":"https://secure.gravatar.com/avatar/8f3be2c1d014f124f134c6b32e38b123?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"To improve the speed of loading a web page, it may be interesting to automatically detect the debug mode and to load compressed files (css and js) or not.\r\n\r\nThe logic is as follow:\r\n\r\n    if debug is on\r\n        try to load the uncompressed version of a file named *file*-uncompressed.(js,css)\r\n        else load the classical file *file*.(js,css)\r\n    else\r\n        load the classical file *file*.(js,css)\r\n    endif\r\n\r\nThe use is as follow:\r\n\r\n    JHtml::_('script', 'com_foo/bar.js');\r\n\r\nwill look for files in media/com_foo/js/\r\n\r\n    if debug is on\r\n        try to load bar-uncompressed.js\r\n        else load bar.js\r\n    else\r\n        load bar.js\r\n    endif\r\n\r\nFor stylesheets:\r\n\r\n    JHtml::_('stylesheet', 'com_foo/bar.css');\r\n\r\nwill look for files in media/com_foo/css/\r\n\r\n    if debug is on\r\n        try to load bar-uncompressed.css\r\n        else load bar.css\r\n    else\r\n        load bar.css\r\n    endif\r\n\r\n\r\nUnit tests have been added in modified classes","assignee":null,"id":2157309,"number":490,"pull_request":{"patch_url":"https://github.com/joomla/joomla-platform/pull/490.patch","html_url":"https://github.com/joomla/joomla-platform/pull/490","diff_url":"https://github.com/joomla/joomla-platform/pull/490.diff"},"labels":[],"title":"Adding the possibility to load (un)compressed css and js file whether debug in on or off","closed_at":null,"html_url":"https://github.com/joomla/joomla-platform/issues/490","milestone":null,"url":"https://api.github.com/repos/joomla/joomla-platform/issues/490"},"action":"created","comment":{"created_at":"2011-11-19T00:31:28Z","updated_at":"2011-11-19T00:31:28Z","user":{"gravatar_id":"679908c699f06435eb3c407f0259bab1","id":929228,"url":"https://api.github.com/users/joomla-jenkins","login":"joomla-jenkins","avatar_url":"https://secure.gravatar.com/avatar/679908c699f06435eb3c407f0259bab1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Build triggered by changes to the head.\n\nUnit testing complete.  There were 0 failures and 0 errors from 1735 tests and 10781 assertions.\nCheckstyle analysis reported 235 warnings and 0 errors.\n","id":2796389,"url":"https://api.github.com/repos/joomla/joomla-platform/issues/comments/2796389"}}