Improving thymeleaf head fragment.