Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Matti 15 posts 35 karma points
    Mar 25, 2010 @ 10:32
    Matti
    0

    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?

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Mar 25, 2010 @ 11:17
    Peter Dijksterhuis
    0

    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

  • Matti 15 posts 35 karma points
    Mar 25, 2010 @ 12:41
    Matti
    0

    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? :)

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Mar 25, 2010 @ 12:47
    Jan Skovgaard
    0

    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

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Mar 25, 2010 @ 13:21
    Peter Dijksterhuis
    0

    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

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Mar 26, 2010 @ 12:47
    Dave Woestenborghs
    0

    Does the clientdependency framework also support compression ?


    Dave

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Mar 26, 2010 @ 12:53
    Peter Dijksterhuis
    0

    Yes, if I'm not mistaken it combines and compresses the files as well.

    Download 4.1-beta and give it a try ;)

    Peter

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Mar 26, 2010 @ 13:53
    Dave Woestenborghs
    0

    I thought it only compressed css and javascript

Please Sign in or register to post replies

Write your reply to:

Draft