﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6475	Optimize compression	Alfonso Martínez de Lizarrondo		"I've noticed that the numbers like 1000 are output by the compressor ""as is"", but they can be compressed (a byte each instance) to 1e3

And a more logical improvement is that the keyboard shortcuts are generated like 1000+86 instead of putting directly 1086 that saves three bytes and saves an operation.

Other kind of optimization is that trailing semicolons before a closing bracket aren't needed:
{{{
		if ( newGetUrl )
		{
			var originalGetUrl = CKEDITOR.getUrl;
			CKEDITOR.getUrl = function ( resource )
			{
				return newGetUrl.call( CKEDITOR, resource ) ||
					originalGetUrl.call( CKEDITOR, resource );
			};
		}
}}}
should be compressed just as if it was written this way:
{{{
		if ( newGetUrl )
		{
			var originalGetUrl = CKEDITOR.getUrl;
			CKEDITOR.getUrl = function ( resource )
			{
				return newGetUrl.call( CKEDITOR, resource ) ||
					originalGetUrl.call( CKEDITOR, resource )
			}
		}
}}}


The last optimization is that self-executing functions don't need enclosing parenthesis:
{{{
<!doctype html>
<head>
<title>Removal of parenthesis</title>
</head>
<body>
<script type=""text/javascript"">
var a = function(){ return ""OK""}();
var b = (function(){ return ""OK""})();

document.write(""a: "" + a  + ""<br>"");
document.write(""b: "" + b  + ""<br>"");

</script>
</body>
</html>
}}}"	New Feature	closed	Normal		Project : CKPackager		fixed		
