1

May be it is a common way of working of libraries but i dont understand why i have so many style elements in my index.html where i use angular material. Here you see my header element that contains different classes for angular material components.

enter image description here

Is that working correctly? Is it slow downing my html file?

2
  • Read the "under the hood" section of theming docs for explanation Commented Jan 3, 2016 at 18:17
  • @charlietfl You posted your suggestion 4 minutes after I posted my answer, and they are basically suggesting the same thing. May I ask why? I'm looking up to users with such a vast experience as yours and try to learn the SO unwritten ways from them. Do you consider the question should have remained unanswered, since the OP clearly did not put up a proper documenting effort? Commented Jan 3, 2016 at 18:30

1 Answer 1

2

Yes, it's normal.

Each registered theme results in 16 <style> tags being generated.

And it's not slowing down your website. As a matter of fact, from all forms of adding CSS to a page, <style> is fastest.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.