Themes load before rendering template instead of ajax