Replacing the loading lines with a modal

Does anyone know if it is possible to replace the loading lines when a page loads with something a little more prettier like a white box with a loading spinner?

I can see plenty of Universal Dashboard examples however, in PowerShell Universal the page seams to load with Grey lines: