PHP: Delayed Redirect with message without Meta refresh

Messing around with dompdf I tried to show a little teaser right before downloading a generated PDF file. Using WordPress I initially thought about simply putting a Meta refresh into the head by using a suitable hook:

Actually I stumbled upon a simpler and imho cleaner solution to implement a delayed redirect with a nice message: