Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8825219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:49:35+00:00 2026-06-14T06:49:35+00:00

My asp.net MVC4 web project is running very slowly when serving a simple page

  • 0

My asp.net MVC4 web project is running very slowly when serving a simple page that renders bundled scripts. However, when I use a ‘hardcoded’ script tag on the page with the source attribute of the virtual bundle path then performance is much better:

@Scripts.Render("~/bundles/scripts")                            ~ 4 seconds

vs

<script src='@Scripts.Url("~/bundles/scripts")'></script>       < 1 second

My BundleConfig.cs has no special configuration, this is exactly as it appears:

bundles.Add(new ScriptBundle("~/bundles/scripts").Include(
    "~/Scripts/jquery-1.7.2.min.js",
    "~/Scripts/jquery.validate.min.js",
    "~/Scripts/jquery.validate.unobtrusive.js",
    "~/Scripts/jquery-ui-1.9.0.custom.min.js",
    "~/Scripts/bootstrap.min.js",
    "~/Scripts/bootstrap-modal.js",
    "~/Scripts/bootstrap-dropdown.js",
    "~/Scripts/bootstrap-tooltip.js",
    "~/Scripts/bootstrap-typeahead.js",
    "~/Scripts/bootstrap-transition.js",
    "~/Scripts/bootstrap-popover.js"));

My web.config is even configured to optimize in Debug but I have tried running in Release mode and still get the same result:

<compilation optimizeCompilations="true" debug="false" targetFramework="4.0" />

Any ideas why Scripts.Render is so slow?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T06:49:36+00:00Added an answer on June 14, 2026 at 6:49 am

    The problem was with the outdated package I had installed. A simple Update-Package in package manager console and I went from

    <package id="Microsoft.AspNet.Web.Optimization"
        version="1.0.0-beta2" targetFramework="net40" />
    

    to

    <package id="Microsoft.AspNet.Web.Optimization"
        version="1.0.0" targetFramework="net40" />
    

    Now Scripts.Render() is peforming much better 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a ASP.NET MVC4 web api that uses fluent NHibernate, but when I
I'm researching the new ASP.NET MVC4 Web API framework. I'm running Visual Studio 2011
I have asp.net mvc 4 web application project on my server in IIS Directory.
In ASP.net MVC4 there's this 'new' concept of a web API for exposing CRUD
My web application is ASP.NET MVC4 with Razor and Knockout.js. The view model hierarchy
I am creating a web api using asp.net mvc4 and the response output is
I'm using latest MVC4-RC (.net 4.0) with Microsoft ASP.NET Web Optimization Framework http://nuget.org/packages/Microsoft.AspNet.Web.Optimization/1.0.0-beta3 and
I have a layered web application that I built with ASP.NET MVC 4, WebAPI
I have planned to go for asp.net MVC4 web API. Any one can compare
I have an asp.net MVC3 project I made an upgrade to asp.net mvc4 following

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.