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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:47:44+00:00 2026-06-18T11:47:44+00:00

So in my JavaScript codebase I have been using the var me = this

  • 0

So in my JavaScript codebase I have been using the var me = this idiom to support minification. But I’ve started questioning this lately, and I was wonder if assignment of this to a variable could be avoided with smarter minification tools?

It seems like a tool should be able to detect functions where creating a variable to represent this would save characters over multiple calls to this. The same could be done for boolean values, like var yes = true, nope = false.

Are there tools I could use to avoid setting var me = this all over my code base? In general is a good idea to change your codebase to better support minification?

Keep in mind that I do understand that in certain instances I need a variable assigned to this to reference outer scope inside a JavaScript closure. The use of var me = this I am taking about is solely for supporting minification.

  • 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-18T11:47:45+00:00Added an answer on June 18, 2026 at 11:47 am

    You should not worry about minification until you are ready to deploy your code live. I would recommend using Google’s closure compiler to minify all of your code once you are done. Check it out here: http://code.google.com/p/closure-compiler/

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

Sidebar

Related Questions

JavaScript/JQuery var arr=[]; $('.element').each(function(i) { arr.push({id:i,value:$(this).attr('data-value')}); }); $.get('/json.php?arr='+arr,function(result) { alert(result); }); PHP <?php $j
javascript with> var customer=document.getElementById('custList').value; and that works... Why does it work BUT... var customer=(form1.custList.value);
I have a large Javascript codebase to convert to jQuery. The code is structured
I have a codebase of Javascript files that I use to drive a Web
I found this library : http://codebase.es/riffwave/ which generate sounds on-the-fly in javascript. What I
in HTML <td colspan=3 style='background-color:pink;' >hello world</td> but in Javascript / DOM var td
I recently joined a new team. This team has been using Subversion for their
So I have been having lots of fun playing with SIMILE Timeline , but
I have this code: <object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0 width=300 height=250> <param name=movie value=Spotify_premium_300x250.swf /> <param
so I have this javascript/jquery to make a delay before showing a swf file,

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.