Don't call getSettings() all the times.
Clear cache after the page loading is finished.