Tim Kadlec 1/17/2008

Branching Out

Read Original

This technical article demonstrates how to implement branching in JavaScript to optimize code performance. It uses the example of checking for browser support of `document.getElementById()` to show how a function can run a check once at runtime and then return an optimized version of itself, eliminating redundant verification in subsequent calls.

Branching Out

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser