A conditional, self-contained, lazily-evaluating script loader.