I\'m a Thymeleaf beginner. I started with a common layout page:
fragments/layout.html
This is the best solution i found:
Example
So in the end you can have one fragment containing all the scripts and css you need in all your pages and just add it to your headers, while still being able to ad some custom css, scripts or what ever