Skip to content

Performance Woes #1

@mattgi

Description

@mattgi

I have just started to pull in https://github.com/jlong/sass-twitter-bootstrap in to my project and am adding scss files to a bundle in Global.asax.cs as per the below snippet (from Application_Start()):

var sass = new Bundle("/app.css", new SassTransform());
sass.AddFile("
/Content/sass/bootstrap.scss");
BundleTable.Bundles.Add(sass);

In my layout I then have:
@Html.RenderBundle("~/app.css")

This is all working but it is taking about 55 seconds on first load of the page.

Is this the correct usage and, if so, have you any ideas on ways to improve performance? Maybe a pre-compile option that occurs on Application_Start and then the actual bundle uses these pre-compiled files or something?

Hopefully I'm just missing a step as I really like this approach to using SASS and CoffeeScript.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions