Concatenating all JS files into one file is not ideal or optimal. Say for example that you are using jQuery + all of jQuery UI + page specific Javascript. Since you are gluing all the files together, on each new page users will need to redownload all of the library code in addition to the page specific code. A better solution would be to make separate concatenated files for different types of JS files, this would allow more effective caching and better reduce the number and size of HTTP requests.
-Mark On Oct 3, 2:29 am, Davit Barbakadze <jaya...@gmail.com> wrote: > I wonder whether there already written plugin or component which > automatically concatenates all js and css files used (separately of > course), compresses them and places them onto corresponng place in the > layout? > > So that in the end, for example, no matter how many js files were > included, in the header only one, compressed will be referenced, > holding united info of all those included js files. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---