peter.michaux.ca
peter.michaux.ca - Lazy Function Definition Pattern
http://peter.michaux.ca/articles/lazy-function-definition-pattern
Lazy Function Definition Pattern. Published August 11, 2007 in JavaScript. This article examines a functional-programming design pattern I've been calling Lazy Function Definition. I've repeatedly found this pattern useful in JavaScript especially when writing cross-browser libraries that are efficient at runtime. Object that holds the time that. Solution #1: Ancient Technology. This simplistic solution uses a global variable. Object. The first time. Is run it stores the time in. In subsequent executions,.