# CSS - flash of no style sheet when changing theme

**URL:** <https://forum.inductiveautomation.com/t/css-flash-of-no-style-sheet-when-changing-theme/70412>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [February 28, 2023, 10:54am UTC](https://forum.inductiveautomation.com/t/css-flash-of-no-style-sheet-when-changing-theme/70412 "2023-02-28T10:54:14Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [June 28, 2023, 1:33pm UTC](https://forum.inductiveautomation.com/t/css-flash-of-no-style-sheet-when-changing-theme/70412/9 "2023-06-28T13:33:14Z")

</div>

> [@Perspective Page Transitions?](https://forum.inductiveautomation.com/t/perspective-page-transitions/53975/15):
>
> hehe well you can preload styles if you have this issue when changing theme mage (i think or my pc is to fast to notice) you can preload styles i put this script on my header docked view. going from dark to dark-cool nolonger flashes white code = """\<img style='display:none' src='/favicon.ico' onload=\" if(document.head.childNodes[document.head.childNodes.length-1].getAttribute('rel')=='preload'){return;} var thisStyle = document.createElement('link'); thisStyle.rel = 'prelo…

might be interesting to take look at this

---

_[View the full topic](https://forum.inductiveautomation.com/t/css-flash-of-no-style-sheet-when-changing-theme/70412)._
