Ajax optimalizations.