1) I kinda expected it to remove all comments, spaces and linebreaks from html as well as it does from js and css, is it possible to do that?
2) Google Chrome reports that the MIME type for both js and css is sent as text/html whereas it should have been sent as text/javascript and text/css respectively. It really makes no difference but for good measure it might be a part of a future release? :)
Peter has made a great package but I think that in future versions of Umbraco they're planning to build-in compression. And if I'm not mistaken it's going to happen already in the 4.1 release.
Jan is correct. In 4.1 something callec ClientDependency will be included. This has the same (if not more, better and superiour) functionality as my package. So I decided not to put much effort in further improving my package. You are free to download the source though :)
Doesn't compress anything (umb4.0.3)
Hi,
I've tried to install this seemingly genious package but it doesn't seem to do anything at all :/
I've modified web.config according to the install notes and expected it to worj out of the box - but it didn't..
What have I missed / done wrong?
Hi,
are you using the 3.5 web.config? If so, you need different settings in the web.config. Check this thread for instructions: http://our.umbraco.org/projects/peterdcompress/peterdcompress/5676-linked-js-files-and-css-files-are-throwing-a-404-error
Peter
That did the trick, nice! :)
However I do have a few questions:
1) I kinda expected it to remove all comments, spaces and linebreaks from html as well as it does from js and css, is it possible to do that?
2) Google Chrome reports that the MIME type for both js and css is sent as text/html whereas it should have been sent as text/javascript and text/css respectively. It really makes no difference but for good measure it might be a part of a future release? :)
Hi Matti
Peter has made a great package but I think that in future versions of Umbraco they're planning to build-in compression. And if I'm not mistaken it's going to happen already in the 4.1 release.
/Jan
Jan is correct. In 4.1 something callec ClientDependency will be included. This has the same (if not more, better and superiour) functionality as my package. So I decided not to put much effort in further improving my package. You are free to download the source though :)
Peter
Does the clientdependency framework also support compression ?
Dave
Yes, if I'm not mistaken it combines and compresses the files as well.
Download 4.1-beta and give it a try ;)
Peter
I thought it only compressed css and javascript
is working on a reply...