Compensates for long load times with ajax loading gif
optimizes images