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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:08:51+00:00 2026-05-27T21:08:51+00:00

I am trying to understand JavaScript minification and compression processes and have couple of

  • 0

I am trying to understand JavaScript minification and compression processes and have couple of questions on these:

  1. Since minification makes the code difficult to debug, is it possible to do on-demand de-minification on client-side to cover-up for cases where you actually need to debug and investigate something on the website?
  2. I remember reading somewhere that one can enable compression of all resources (like images, CSS, JavaScript etc.) by setting some options in the Apache Web Server. Is there any difference in the JavaScript compression done at Apache level and, the one done using tools like YUI Compressor?

Can someone help me know the above?

The kind-of cases where I would actually need to de-minify my JavaScript files is let’s say a JavaScript error happened at line no. X. With a minified files it would be very tough to know which block of code caused that error in production as the lines are all wrapped up in a minified file. How do you guys investigate and debug in such circumstances? Another user also mentioned this debugging problem in Packed/minified javascript failing in IE6 – how to debug? questions (slightly specific to IE6 though).

  • 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-27T21:08:52+00:00Added an answer on May 27, 2026 at 9:08 pm

    Since minification makes the code difficult to debug, is it possible
    to do on-demand de-minification on client-side to cover-up for cases
    where you actually need to debug and investigate something on the
    website?

    Sort of. Minified javascript has the same structure, it just does things like delete extra spaces and shorten variable names. So you can easily make the code readable again, either manually or with a script, but you can’t recover variable names, so the code will still be harder to work with. So, if you have the original code, definitely don’t get rid of it. Save the minified code separately.

    I remember reading somewhere that one can enable compression of all
    resources (like images, css, javascript etc.) by setting some options
    in the Apache Web Server.

    Yes, it’s called gzip compression. It’s not unique to apache, but you would need to configure your server to enable it.

    Is there any difference in the javascript compression done at Apache
    level and, the one done using tools like YUI Compressor?

    Yes. YUI compressor is a minifier – the output is valid javascript. Server-side compression is more analogous to zipping a file – the browser must decode it before it can be used. Using the two together would yield the smallest filesize.

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

Sidebar

Related Questions

I have a piece of Javascript code I'm trying to understand // read big-endian
I have this piece of javascript code that I am trying to understand return
I'm trying to understand how to use firebug to debug my Javascript. So I
I'm really confused here. I am trying to understand this code (it's javascript) but
I am trying to understand how to develop stand-alone Javascript code. I want to
Hai, I am trying to understand few concepts in JavaScript. Consider the following code:
I am trying to understand a third party Javascript code. But am not able
I have this javascript function I am trying to understand. I don't know if
I'm trying to understand 2 different lines of code below. My javascript is weak,
I am trying to understand how a single and multidimensional javascript array would appear

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.