Loading Disqus' script files and comments on page load can lower down speed and performance of the page, specially in mobiles. A solution would be to use an Intersection Observer to lazily load Disqus.
November 9, 2019
November 6, 2019
November 4, 2019
An anonymous async function can be defined using the Immediately-invoked Function Expression pattern for asynchronous functions.
November 2, 2019
October 31, 2019
October 28, 2019
How to Prevent Form Validation on Page Load & While Typing on Input Field (HTML Constraint Validation API)
October 26, 2019
October 23, 2019
Function parameters can be initialized with a default value in the parameter list itself using ES6 default parameters.
October 20, 2019
The Number() method can be used to convert a string containing numeric characters to a number upon which mathematical operations can be done.
October 18, 2019
The Math.sign() is a new method introduced in ES6 that can be used to find whether a number is positive or negative or a zero.
October 17, 2019
The Math.trunc() method can be used to truncate the fractional portion of a number. The number can also be rounded to the next integer using Math.round(), Math.ceil() and Math.floor() methods.
October 15, 2019
October 7, 2019
The globalThis is a global property referring to the global object. This makes it very easy to access this inside callbacks, event handlers, inner functions etc.
October 6, 2019
October 3, 2019
October 1, 2019
Keys of a Javscript object can be retrieved using the Object.keys() method. This returns own enumerable property names as an array.
September 29, 2019
The sort() method can be used to sort an array of objects. A custom callback function can be written that can sort using key(s) of the included objects.
September 24, 2019
September 21, 2019
The window.getComputedStyle() method can be used to get current values of CSS properties of an element.
September 15, 2019
Intersection Observer Now Also Accepts a Document as the Root Element
Better Caching With stale-while-revalidate Directive in Cache-Control Header
Synchronous AJAX Will Not Work in Page Dismissal Events
New & Upcoming CSS Properties
CSS gap Property for Flexbox
CSS clamp() Function
CSS max() Function
CSS min() Function
Inner & Outer Values of CSS display
SVG Support for Favicons
CSS Transform Properties - translate, rotate & scale - Are Also Available As Independent CSS Properties