Knock out your unused CSS
Unused CSS is a one of the issues most web applications suffer when it comes to performance and page load time.
May 07, 2019
7 min
Unused CSS is a one of the issues most web applications suffer when it comes to performance and page load time.
Recently I had a chance to present a talk at NDC Sydney about web performance and it received a great feedback.
Mentioning this is trivial as no one seems to notice this while using default JQuery show and hide methods to show or hide an element on a page. As you might have noticed this before when you use hide()
, the element gets a display:none;
style. The problem is when you use show()
to show the element again and here is when you seedisplay:block;
is added to element styles.