Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use "use strict" in minified versions of JS #1655

Closed
marcalj opened this issue Feb 3, 2012 · 6 comments
Closed

Don't use "use strict" in minified versions of JS #1655

marcalj opened this issue Feb 3, 2012 · 6 comments
Labels

Comments

@marcalj
Copy link

marcalj commented Feb 3, 2012

In the majority of documents that explain the use of "use strict" on JS code, they tell to use it on development only.
The javascript execution it's faster without it.

@mdo
Copy link
Member

mdo commented Feb 5, 2012

You'll have to talk to @fat about that, but he has a post about it, too: http://www.wordsbyf.at/2011/11/03/140-hella-strict/

@mdo mdo closed this as completed Feb 5, 2012
@mdo mdo reopened this Feb 5, 2012
@marcalj
Copy link
Author

marcalj commented Feb 5, 2012

I think there's no conflict with @fat's goal we think that means giving you the tools to detect potentially hazardous mistakes early and independently. You will detect mistakes in development, so in production we need to go efficient. The same way as there's a minified version of JS code.

@fat
Copy link
Member

fat commented Feb 17, 2012

yep you're right - surprised/sad uglify doesn't strip it. :/

@fat
Copy link
Member

fat commented Feb 17, 2012

should be stripped now

@fat fat closed this as completed Feb 17, 2012
@marcalj
Copy link
Author

marcalj commented Feb 17, 2012

👍 thanks.

@fat
Copy link
Member

fat commented Feb 18, 2012

no problemo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants