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 3438420
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:11:08+00:00 2026-05-18T08:11:08+00:00

I have developed a .net 3.5 c# web application and want to make some

  • 0

I have developed a .net 3.5 c# web application and want to make some performance improvements to it. The app has a large number of javascript files and css files.

Following are some techniques I am looking at implementing:

  • Combining javascript files
  • Combining css files
  • Minimize files
  • Change any images in the css files to
    be base64 encoded strings or sprites

The above are some examples of what I want to achieve but my questions are around how I can go about doing such.

I was looking at creating a MSBuild task to do this. But the complication I have is as follows.

I have a large number of pages which containing a number of javascript files. What I would like is when the application is in debug mode, use the individual files, if in release mode, use the combined files. So the first part of the complexity will be that run time decision.

Next issue is for the build task to know which files to combine. Is there anyway that a build task can look at the javascript used on each page and combine the files based on this at runtime?

I have used javascript as an example but the same will apply to css.

The other issue I have is that some user controls also have javascript so they would to be taken in to account also. I am not too concerned though if this cant be achieved.

Final step would be at runtime to output any the build number or some unique number with the javascript/css files as a parameter to invalidate cache in new releases.

I am aware that my question is sketchy but just looking for some advice on this if possible.

Thanks.

  • 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-05-18T08:11:09+00:00Added an answer on May 18, 2026 at 8:11 am

    I advise against the separate (debug) vs combined (release); this creates additional variables to fight and you will eventually get bitten by this – but only in production. Minified vs original is less clear-cut, but we have seen occasions when the js minifier simply gets it wrong; the minifier version behaves differently. Likewise some CSS minifiers will fail (emitting an empty CSS, typically) if it doesn’t like the input (even if that same CSS works in your browser). For these reasons I’d say develop on the minified version to spot this sooner.

    Other thoughts:

    • ensure you support gzip/deflate
    • ensure you support expiration headers
    • image spriting
    • a CDN or similar for static content (no cookies; expiry headers enabled; web server in static file mode – no CPU overhead)

    (and yes, you will want to combine that with a cache-breaker)

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

Sidebar

Related Questions

I have two web applications and both are developed in ASP.NET. Now I want
I have a web application developed with ASP.net and C# that is running on
I am looking at globalizing an application that I have developed in asp.net mvc.
I have an ASP.NET application developed on my Vista box (IIS7). It works fine
I have an internal enterprise application I've developed for my company built on .Net
I have developed a VB.NET WCF service that recives and sends back data. When
We have developed our website(Business users website) in .net Framework 2.0 Our client us
I have developed a build system on MSBuild (NET 3.0) and cc.net to perform
I have a site developed in ASP.NET and hosted on a windows server using
We have hundreds of websites which were developed in asp, .net and java and

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.