0

In my index.thmli have a lot of stuff that are not related to my app, it is just static header and footer provided by other guys, a lot of markup + styles.

so the question is can I do not show it untill styles from styles.css is loaded?

I thinking about some loader, but i believe there is a better soultion.

Thanks.

Kraken
  • 1,905
  • 12
  • 22

2 Answers2

1

I'm not quite sure exactly what you are trying to achieve, but what you can do is:

  1. Add a showLater class and display:none inline for these elements that you don't want to see until later

    <div class="showLater" style="display:none">Content to hide until styles are loaded</div>

  2. override in in style.css with !important

    .showLater {display: block !important;}

David
  • 33,444
  • 11
  • 80
  • 118
1

Once you will make prod build, your problem will be resolved.

ng build --prod

Thanks.