Compile on initial load and if compiling wait till complete and return 
the request after compilation is complete.