Why <load-on-startup> is used in web.xml?
Any servlet is loaded/initialized when the first request comes to container. Hence, the first request may appear significantly slow. To reduce the latency, you can define
<load-on-startup> for any servlet so that container loads it at the time when server is started. To read full article visit Why load-on-startup is used in web.xml