Writing faster html and CSS!
Writing faster html and CSS!
I am working at software development organization and developing some rich content pages, at my team most of the time i am working as front end engineering and working with the GUI, While developing the pages i always worrying about why the pages is running slow.
Then I start searching that how the browser’s display the content and compute the style, while searching the browsers render and computing algorithms, i found that most of the browsers render the content as a tree and computer their style.
So when the element have id and class selector then the page performance is relatively fast than the descendant selector like
if you pages have 10 div
1 : div{
background:red
}
div#id{
background:red
}
#id{
background:red
}
the id selector is run faster than the other .