JIT Loader Example - Loading "En Route" to an Event

In this example, we use predictive behavior to start the loading of the YUI panel libraries as the user moves into the pink region on the page. While we won't be 100% sure the user will click the button in the target area, the percentage chance is high enough that we can make the decision to perform the load.

To prevent creating the panel object twice, we use the Lock object that comes with the JIT Loader as a way of placing a singular lock on panel creation.