News for hackers. Stuff that matters.
Re:How to write up to 98% faster JavaScript code. by dstein on Friday April 15, 2011 @05:04PM (#2452206)
You're right maybe it can't be done universally. But you could add an optimizer to a production build system which rewrites any instance of:

  window.Library.util.add()
To:

  var window_Library_util_add = window.Library.util.add;
  window_Library_util_add();

There are no comments on this comment yet.