This forum is now read-only. Please use our new forums! Go to forums
The universal selector (*) is know to be slow
What does this warning hint in the CSS file mean?
Answer 51fd5f4a80ff339241003ea3
Hi.
I saw that, as well, and did a little research. It seems it used to be slow about 10 years ago, but now it isn’t as bad. Basically, the warning hint is just saying using it will slow your browser down and make your website slower.
I’m taking a web design class, and we were told to use the universal selector to reset the margin and border to 0 at the beginning of every project, and I haven’t had a problem using it with only those two values. It may make the page render more slowly if the universal selector is used too much.
Best practice is to be as specific as you can, which would really limit the number of times you would ever need to use the universal selector.
Hope that helps.
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency