Copied to clipboard

Flag this post as spam?

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


  • Steven 33 posts 166 karma points
    Mar 07, 2017 @ 16:19
    Steven
    0

    CSS Minification

    Hi,

    FYI ...

    I changed the 'site template' to also use the 'client dependency minification' for the CSS

    So using:

    Html.RequiresCss("~/css/bootstrap.css",1);
    Html.RequiresCss("~/css/font-awesome.css",2);
    Html.RequiresCss("~/css/ionicons.css",3);
    Html.RequiresCss("~/css/plugin/jPushMenu.css",4);
    Html.RequiresCss("~/css/plugin/animate.css",5);
    Html.RequiresCss("~/css/jquery-ui.css",6);
    Html.RequiresCss("~/scripts/cookiebar/jquery.cookiebar.css",7);
    Html.RequiresCss("~/css/style.css",8);  
    

    and then calling the

    @Html.Raw(Html.RenderCssHere())
    

    The same was already done for the JS so not sure if there was any reason for not doing it for the CSS ?

    I checked and so far it seems to work fine for me ...

    Cheerio,

    Steven

  • Sotiris Filippidis 286 posts 1501 karma points
    Mar 07, 2017 @ 16:26
    Sotiris Filippidis
    100

    I had some issues with CSS and Dependency Framework, that's why I didn't use it for CSS in the first place. I can't recall what it was exactly, but I remember something having to do with CSS imports.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies