Added a spinner while code ajax/compiles