optimization for index.html