'How to load/import css and assets files before the view loads (Angular)

I need to load the stylesheet and the files inside the assets folder (icon, images...) before the view loads.

My current problem is that while reloading my app, the images appear after the view by a few milliseconds.

Is there a way to fix that, with angular?



Solution 1:[1]

You can do that but with Server Side Rendering because when you load the app (Client side rendering) at that time the javascript find the resources to load

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jonathan Lopez