I have a animated background that has quite a lot of scss code that is delivered when page is loaded and it is not necessary to load it quickly as it is just for good looks. Therefor I want to defer the loading to whenever the browser is idle. I just dont know how to go about it since I cant follow this https://web.dev/articles/defer-non-critical-css as im using scss and astro instead of just a vanilla setup.
web.dev
Learn how to defer non-critical CSS with the goal of optimizing the Critical Rendering Path, and improving FCP (First Contentful Paint).