Only load library if not already defined. 

Redefining types and methods at each page load is not good.