#494 ✓ checked-in
sephr

Minification

Reported by sephr | March 26th, 2010 @ 03:24 PM | in 1.2

All globals used 3 or more times in PJS should be stored in private variables in the top of the PJS main library closure. They can't be the same name, so if you absolutely must use the same name, make it a parameter of the main library closure ((function(Math){/*Math can be minified to a single letter in here*/}(Math))).

Also, if document is included, the redundant document minification in tinylog lite can be removed (doc = document).

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Processing.js is an open programming language for people who want to program images, animation, and interactions for the web without using Flash or Java applets. Processing.js uses Javascript to draw shapes and manipulate images on the HTML5 Canvas element. The code is light-weight, simple to learn and makes an ideal tool for visualizing data, creating user-interfaces and developing web-based games.

Shared Ticket Bins

Referenced by

Pages