3 posts tagged with "javascript"

Removing duplicates from arrays in JavaScript

There are multiple ways to remove duplicates from an array with JavaScript. But, it’s very important to know the details of how efficient they, especially if you’re dealing with large arrays.

PublishedApr 24, 2019
Time to read3 min
javascriptarraysdeduplicationRead more

Optimising JavaScript

Recently I had a chance to present a talk at NDC Sydney about web performance and it received a great feedback.

PublishedOct 12, 2018
Time to read7 min
webperformancejavascriptRead more

How to show or hide content without any JS library or code

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.

PublishedJun 18, 2016
Time to read2 min
csshtmljavascriptRead more