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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:29:12+00:00 2026-06-01T23:29:12+00:00

So I was just minifying using the AjaxMin.dll in my project on every build/deployment

  • 0

So I was just minifying using the AjaxMin.dll in my project on every build/deployment for all js/css files with the default settings. This turned out to be a bad idea. One of the third party javascript files that we have has a nice eval statement with some variables or parameters being referenced. When it gets minified, the original variables get renamed and not renamed in the eval statement. This has caused a big old error in production (FML).

I have decided I need to pick safer settings for the minification process.

The documentation on AjaxMin is very ummm not clear.
http://www.asp.net/ajaxlibrary/AjaxMinWithAndEval.ashx

Or maybe i just don’t understand it. I am using the code (with the DLL) and not the command line.

The CodeSettings class has a EvalTreatment class option but I am unsure what is the best option to pick…

From Microsoft (DLL source):

using System;

namespace Microsoft.Ajax.Utilities
{
    public enum EvalTreatment
    {
        Ignore = 0,
        MakeImmediateSafe = 1,
        MakeAllSafe = 2,
    }
}

I am thinking MakeImmediateSafe(1) or MakeAllSafe(2)? What do you guys think?

Thanks in advance!

  • 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-01T23:29:13+00:00Added an answer on June 1, 2026 at 11:29 pm

    If you want to make absolutely sure the minified results will always work, use the MakeAllSafe option. That will ensure no variables in the scope of the eval statement, nor in any parent scopes, will be renamed.

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

Sidebar

Related Questions

Just learning the world of jquery, and all my googling gives examples like this:
I'm using CC.Net 1.4.4.83 to build my project. I also have some scheduled tasks
I'd like to improve my page by combining and minifying javascript and CSS files.
Just see this: SELECT clientid,clientname,startdate,enddate,age FROM clients WHERE clientid IN (1,2,3,4,5) AND CASE WHEN
I've just started using rails, and decided to follow the Ruby on Rails Tutorial
I just finished a small project written in C, where I read a data
When I override the default style/controltemplate of a standard WPF control in blend using
I was just wondering something. I have the following code: #include <iostream> using namespace
I'm using this library: PB for ObjC http://code.google.com/p/metasyntactic/wiki/ProtocolBuffers . The problem is I can't
See this demo from Filament Group using their Progressive Enhancement enhance.js library Modifying to

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.